Actually, I don't have any entry in my /etc/hosts file with hostname:
"home". Infact, I didn't use this hostname naywhere. Then why is it that
its trying to resolve this?

On Mon, Jan 19, 2015 at 3:15 PM, Ashish <paliwalash...@gmail.com> wrote:

> it's not able to resolve home to an IP.
> Assuming it's your local machine, add an entry in your /etc/hosts file
> like and then run the program again (use sudo to edit the file)
>
> 127.0.0.1 home
>
> On Mon, Jan 19, 2015 at 3:03 PM, Rapelly Kartheek
> <kartheek.m...@gmail.com> wrote:
> > Hi,
> >
> > I get the following exception when I run my application:
> >
> > karthik@karthik:~/spark-1.2.0$ ./bin/spark-submit --class
> > org.apache.spark.examples.SimpleApp001 --deploy-mode client --master
> > spark://karthik:7077 $SPARK_HOME/examples/*/scala-*/spark-examples-*.jar
> >>out1.txt
> > log4j:WARN No such property [target] in org.apache.log4j.FileAppender.
> > Exception in thread "main" java.lang.IllegalArgumentException:
> > java.net.UnknownHostException: home
> >     at
> >
> org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:377)
> >     at
> >
> org.apache.hadoop.hdfs.NameNodeProxies.createNonHAProxy(NameNodeProxies.java:237)
> >     at
> >
> org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:141)
> >     at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:569)
> >     at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:512)
> >     at
> >
> org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:142)
> >     at
> > org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2316)
> >     at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:366)
> >     at org.apache.spark.util.FileLogger.<init>(FileLogger.scala:90)
> >     at
> >
> org.apache.spark.scheduler.EventLoggingListener.<init>(EventLoggingListener.scala:63)
> >     at org.apache.spark.SparkContext.<init>(SparkContext.scala:352)
> >     at
> org.apache.spark.examples.SimpleApp001$.main(SimpleApp001.scala:13)
> >     at org.apache.spark.examples.SimpleApp001.main(SimpleApp001.scala)
> >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >     at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> >     at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >     at java.lang.reflect.Method.invoke(Method.java:606)
> >     at org.apache.spark.deploy.SparkSubmit$.launch(SparkSubmit.scala:358)
> >     at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:75)
> >     at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
> > Caused by: java.net.UnknownHostException: home
> >     ... 20 more
> >
> >
> > I couldn't trace the cause of this exception. Any help in this regard?
> >
> > Thanks
>
>
>
> --
> thanks
> ashish
>
> Blog: http://www.ashishpaliwal.com/blog
> My Photo Galleries: http://www.pbase.com/ashishpaliwal
>

Reply via email to