问答详情
源自:2-1 spark安装

安装失败请教

请教一下:我通过window下载的包,上传到Linux上,解压后,执行spark-shell命令 报

Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel).
[INFO] Unable to bind key for unsupported operation: backward-delete-word
[INFO] Unable to bind key for unsupported operation: backward-delete-word
[INFO] Unable to bind key for unsupported operation: down-history
[INFO] Unable to bind key for unsupported operation: up-history
[INFO] Unable to bind key for unsupported operation: up-history
[INFO] Unable to bind key for unsupported operation: down-history
[INFO] Unable to bind key for unsupported operation: up-history
[INFO] Unable to bind key for unsupported operation: down-history
[INFO] Unable to bind key for unsupported operation: up-history
[INFO] Unable to bind key for unsupported operation: down-history
[INFO] Unable to bind key for unsupported operation: up-history
[INFO] Unable to bind key for unsupported operation: down-history
17/05/26 19:30:34 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
17/05/26 19:30:34 ERROR SparkContext: Error initializing SparkContext.
java.net.UnknownHostException: cae-yun-03: cae-yun-03: unknown error
 at java.net.InetAddress.getLocalHost(InetAddress.java:1505)

。。。


提问者:qq_为哥_03738491 2017-05-26 19:36

个回答

  • AurevoirXavier
    2017-06-13 23:30:08

    这么明显的一个 java 异常

    host 没弄对

    你是服务器么

    /etc/hosts 自己修改成你那里的情况