In the spark - env. Sh configured in the HADOOP_CONF_DIR section HADOOP_HOME
And also the core - site. XML HDFS - site. XML copy to spark/conf, the spark - defaults. The conf file path and add to the two files, still tell me error:
The ERROR spark. SparkContext: ERROR initializing SparkContext.
Java. Lang. IllegalArgumentException: java.net.UnknownHostException: HDFS - server