spark集群进入 bin 下面目录./spark-shell 出现Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2024-09-05 06:22:16
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>
是什么原因呢?
最新文章
- exp_tools
- 技巧~向URL地址添加参数
- jQuery带遮罩层弹窗实现(附源码)
- OSGi 的由来和本质特性
- Photoshop:模拟钢笔压力
- BZOJ 1096 ZJOI2007 仓库建设 边坡优化
- neutron的agents
- 驱动力—— 通信引擎(上)—— ESFramework 4.0 进阶(03)
- 用74HC165读8个按键状态(转)
- javaWeb超链接(href)请求-特殊字符处理
- 5分钟学会使用gitlab
- g++基本用法
- beta版本汇总
- HTTP协议(web开发)
- Oracle11g温习-第十一章:管理undo
- 廖雪峰Java-3流程控制-7for循环
- centos下添加git
- RDLC 设置表的重复标题行(在每页中显示标题行)
- DevExpress v18.1新版亮点——WinForms篇(三)
- SQL查询优化的一些建议
热门文章
- Windows注册表的学习
- [NOIP模拟测试7]visit 题解(组合数学+CRT+Lucas定理)
- A. Srdce and Triangle--“今日头条杯”首届湖北省大学程序设计竞赛(网络同步赛)
- PowerDesigner(数据库迁移)
- Java学习之集合(List接口)
- synchronized与ReenTranLock的区别
- Day 22: 软件开发目录设计规范
- jQuery中html()再探究(转载)
- C# Windows服务相关
- linux 6 timezone修改