(1)java.io.EOFException报错: local host is: "node1/192.168.30.128"; destination host is: "node1":8020

 解决方法:

Step 1 :切换到/etc/hadoop目录下,修改core-site.xml 

cd /etc/hadoop
vi core-site.xml

将 <value>hdfs://node1:8020</value>中的node1修改成相应的IP地址

<?xml version="1.0" encoding="UTF-8"?>

<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<configuration>

    <property>

        <name>fs.defaultFS</name>

        <value>hdfs://node1:8020</value>  将这里的node1改成对应的IP地址

    </property>

    <property>

        <name>hadoop.tmp.dir</name>

        <value>/home/hadoop/hadoop/tmp</value>

    </property>

</configuration>

Step 2:修改slaves ,改成IP相应的节点名称

vi slaves

 Step 3:再重新格式化,启动Hadoop

hdfs namenode -format     #格式化
start-all.sh

Step 4:hive元数据初始化

 schematool -dbType mysql -initSchema

最后输入hive即可

(2)FAILED: IllegalArgumentException java.net.URISyntaxException: Relative path in absolute URI: file:./~/hive/tmp/hadoop/e27f6020-e05f-4ce2-8bb7-b14beea78f16/hive_2021-10-29_02-09-10_147_5374776379523645959-1

原因分析:

在  hive/conf/hive-site.xml修改替换路径是时没有写成绝对路径

解决办法:

替换路径时写成绝对路径即可

(3) 启动hbase报错:ERROR [main] conf.Configuration: error parsing conf hbase-site.xml
com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </property>; expected </configuration>.

原因:是因为在配置hbase-site.xml时,直接粘贴过来的,结果少了一个<property>标签。<property></property>一定是成对的!!!!

解决方法:将少了的<property>标签对齐添加回来,再重新启动hbase即可。

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐