<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question java.lang.IllegalArgumentException: java.net.UnknownHostException: user in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/java-lang-IllegalArgumentException-java-net/m-p/12874#M22157</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have installed hadoop cluster together with spark using cloudera free manager, i used all default values.&lt;/P&gt;&lt;P&gt;Spark ios working, i can start spark-shell and on the web UI i see master and all the workers but everytime i try to run anything in spark-shell i get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;java.lang.IllegalArgumentException: java.net.UnknownHostException: user&lt;BR /&gt;at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:377)&lt;BR /&gt;at org.apache.hadoop.hdfs.NameNodeProxies.createNonHAProxy(NameNodeProxies.java:237)&lt;BR /&gt;at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:141)&lt;BR /&gt;at org.apache.hadoop.hdfs.DFSClient.&amp;lt;init&amp;gt;(DFSClient.java:576)&lt;BR /&gt;at org.apache.hadoop.hdfs.DFSClient.&amp;lt;init&amp;gt;(DFSClient.java:521)&lt;BR /&gt;at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:146)&lt;BR /&gt;at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2397)&lt;BR /&gt;at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:89)&lt;BR /&gt;at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2431)&lt;BR /&gt;at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2413)&lt;BR /&gt;at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:368)&lt;BR /&gt;at org.apache.hadoop.fs.Path.getFileSystem(Path.java:296)&lt;BR /&gt;at org.apache.hadoop.mapred.FileInputFormat.listStatus(FileInputFormat.java:221)&lt;BR /&gt;at org.apache.hadoop.mapred.FileInputFormat.getSplits(FileInputFormat.java:270)&lt;BR /&gt;at org.apache.spark.rdd.HadoopRDD.getPartitions(HadoopRDD.scala:140)&lt;BR /&gt;at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:207)&lt;BR /&gt;at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:205)&lt;BR /&gt;at scala.Option.getOrElse(Option.scala:120)&lt;BR /&gt;at org.apache.spark.rdd.RDD.partitions(RDD.scala:205)&lt;BR /&gt;at org.apache.spark.rdd.MappedRDD.getPartitions(MappedRDD.scala:28)&lt;BR /&gt;at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:207)&lt;BR /&gt;at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:205)&lt;BR /&gt;at scala.Option.getOrElse(Option.scala:120)&lt;BR /&gt;at org.apache.spark.rdd.RDD.partitions(RDD.scala:205)&lt;BR /&gt;at org.apache.spark.rdd.FlatMappedRDD.getPartitions(FlatMappedRDD.scala:30)&lt;BR /&gt;at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:207)&lt;BR /&gt;at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:205)&lt;BR /&gt;at scala.Option.getOrElse(Option.scala:120)&lt;BR /&gt;at org.apache.spark.rdd.RDD.partitions(RDD.scala:205)&lt;BR /&gt;at org.apache.spark.rdd.MappedRDD.getPartitions(MappedRDD.scala:28)&lt;BR /&gt;at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:207)&lt;BR /&gt;at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:205)&lt;BR /&gt;at scala.Option.getOrElse(Option.scala:120)&lt;BR /&gt;at org.apache.spark.rdd.RDD.partitions(RDD.scala:205)&lt;BR /&gt;at org.apache.spark.Partitioner$.defaultPartitioner(Partitioner.scala:58)&lt;BR /&gt;at org.apache.spark.rdd.PairRDDFunctions.reduceByKey(PairRDDFunctions.scala:355)&lt;BR /&gt;at $iwC$$iwC$$iwC$$iwC.&amp;lt;init&amp;gt;(&amp;lt;console&amp;gt;:14)&lt;BR /&gt;at $iwC$$iwC$$iwC.&amp;lt;init&amp;gt;(&amp;lt;console&amp;gt;:19)&lt;BR /&gt;at $iwC$$iwC.&amp;lt;init&amp;gt;(&amp;lt;console&amp;gt;:21)&lt;BR /&gt;at $iwC.&amp;lt;init&amp;gt;(&amp;lt;console&amp;gt;:23)&lt;BR /&gt;at &amp;lt;init&amp;gt;(&amp;lt;console&amp;gt;:25)&lt;BR /&gt;at .&amp;lt;init&amp;gt;(&amp;lt;console&amp;gt;:29)&lt;BR /&gt;at .&amp;lt;clinit&amp;gt;(&amp;lt;console&amp;gt;)&lt;BR /&gt;at .&amp;lt;init&amp;gt;(&amp;lt;console&amp;gt;:7)&lt;BR /&gt;at .&amp;lt;clinit&amp;gt;(&amp;lt;console&amp;gt;)&lt;BR /&gt;at $print(&amp;lt;console&amp;gt;)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:606)&lt;BR /&gt;at org.apache.spark.repl.SparkIMain$ReadEvalPrint.call(SparkIMain.scala:772)&lt;BR /&gt;at org.apache.spark.repl.SparkIMain$Request.loadAndRun(SparkIMain.scala:1040)&lt;BR /&gt;at org.apache.spark.repl.SparkIMain.loadAndRunReq$1(SparkIMain.scala:609)&lt;BR /&gt;at org.apache.spark.repl.SparkIMain.interpret(SparkIMain.scala:640)&lt;BR /&gt;at org.apache.spark.repl.SparkIMain.interpret(SparkIMain.scala:604)&lt;BR /&gt;at org.apache.spark.repl.SparkILoop.reallyInterpret$1(SparkILoop.scala:795)&lt;BR /&gt;at org.apache.spark.repl.SparkILoop.interpretStartingWith(SparkILoop.scala:840)&lt;BR /&gt;at org.apache.spark.repl.SparkILoop.command(SparkILoop.scala:752)&lt;BR /&gt;at org.apache.spark.repl.SparkILoop.processLine$1(SparkILoop.scala:600)&lt;BR /&gt;at org.apache.spark.repl.SparkILoop.innerLoop$1(SparkILoop.scala:607)&lt;BR /&gt;at org.apache.spark.repl.SparkILoop.loop(SparkILoop.scala:610)&lt;BR /&gt;at org.apache.spark.repl.SparkILoop$$anonfun$process$1.apply$mcZ$sp(SparkILoop.scala:935)&lt;BR /&gt;at org.apache.spark.repl.SparkILoop$$anonfun$process$1.apply(SparkILoop.scala:883)&lt;BR /&gt;at org.apache.spark.repl.SparkILoop$$anonfun$process$1.apply(SparkILoop.scala:883)&lt;BR /&gt;at scala.tools.nsc.util.ScalaClassLoader$.savingContextLoader(ScalaClassLoader.scala:135)&lt;BR /&gt;at org.apache.spark.repl.SparkILoop.process(SparkILoop.scala:883)&lt;BR /&gt;at org.apache.spark.repl.SparkILoop.process(SparkILoop.scala:981)&lt;BR /&gt;at org.apache.spark.repl.Main$.main(Main.scala:31)&lt;BR /&gt;at org.apache.spark.repl.Main.main(Main.scala)&lt;BR /&gt;Caused by: java.net.UnknownHostException: user&lt;BR /&gt;... 69 more&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody have a clue what is the issue here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i did find few posts that were taliking about localhost name and HADOOP_CONF_DIR defined on workers but nothing helped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;DaliborJ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 08:59:30 GMT</pubDate>
    <dc:creator>DaliborJ</dc:creator>
    <dc:date>2022-09-16T08:59:30Z</dc:date>
  </channel>
</rss>

