spark集群启动的时候可以正常,进入 ./spark-shell 就会出现如下错误

配置文件:spark-env.sh


export JAVA_HOME=/usr/java/jdk1.7.0_51
export SCALA_HOME=/home/hadoop/scala-2.11.6

export SPARK_MASTER_IP=master24
export SPARK_MASTER_PORT=17077
export SPARK_MASTER_WEBUI_PORT=18080

export SPARK_WORKER_CORES=1
export SPARK_WORKER_MEMORY=30g
export SPARK_WORKER_WEBUI_PORT=18081
export SPARK_WORKER_INSTANCES=1INFO SparkEnv: Registering BlockManagerMaster

错误信息如下:
15// :: INFO DiskBlockManager: Created local directory at /tmp/spark-local--6f8e
// :: INFO MemoryStore: MemoryStore started with capacity 294.9 MB.
// :: INFO ConnectionManager: Bound socket to port with id = ConnectionManagerId(server2,)
// :: INFO BlockManagerMaster: Trying to register BlockManager
// :: INFO BlockManagerInfo: Registering block manager server2: with 294.9 MB RAM
// :: INFO BlockManagerMaster: Registered BlockManager
// :: INFO HttpServer: Starting HTTP Server
// :: INFO HttpBroadcast: Broadcast server started at http://192.168.1.24:41483
// :: INFO HttpFileServer: HTTP File server directory is /tmp/spark-524059df-53c2-4df8-a2a0-c76c878a3d94
// :: INFO HttpServer: Starting HTTP Server
// :: INFO SparkUI: Started SparkUI at http://server12:4040
// :: WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
java.lang.IllegalArgumentException: java.net.UnknownHostException: cluster1
at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:)
at org.apache.hadoop.hdfs.NameNodeProxies.createNonHAProxy(NameNodeProxies.java:)
at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:)
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:)
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:)
at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:)
at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:)
at org.apache.hadoop.fs.FileSystem.access$(FileSystem.java:)
at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:)

at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
Caused by: java.net.UnknownHostException: cluster1
... 61 more

Spark context available as sc.

scala>

是什么原因呢?

最新文章

  1. exp_tools
  2. 技巧~向URL地址添加参数
  3. jQuery带遮罩层弹窗实现(附源码)
  4. OSGi 的由来和本质特性
  5. Photoshop:模拟钢笔压力
  6. BZOJ 1096 ZJOI2007 仓库建设 边坡优化
  7. neutron的agents
  8. 驱动力—— 通信引擎(上)—— ESFramework 4.0 进阶(03)
  9. 用74HC165读8个按键状态(转)
  10. javaWeb超链接(href)请求-特殊字符处理
  11. 5分钟学会使用gitlab
  12. g++基本用法
  13. beta版本汇总
  14. HTTP协议(web开发)
  15. Oracle11g温习-第十一章:管理undo
  16. 廖雪峰Java-3流程控制-7for循环
  17. centos下添加git
  18. RDLC 设置表的重复标题行(在每页中显示标题行)
  19. DevExpress v18.1新版亮点——WinForms篇(三)
  20. SQL查询优化的一些建议

热门文章

  1. Windows注册表的学习
  2. [NOIP模拟测试7]visit 题解(组合数学+CRT+Lucas定理)
  3. A. Srdce and Triangle--“今日头条杯”首届湖北省大学程序设计竞赛(网络同步赛)
  4. PowerDesigner(数据库迁移)
  5. Java学习之集合(List接口)
  6. synchronized与ReenTranLock的区别
  7. Day 22: 软件开发目录设计规范
  8. jQuery中html()再探究(转载)
  9. C# Windows服务相关
  10. linux 6 timezone修改