Hive java.net.ConnectException:接続が拒否されました(接続が拒否されました)(state = 08S01、code = 0)ソリューション



Hive Java Net Connectexception



記事のディレクトリ

  1. dfs / yarnが開始されているかどうかを確認します。

    jps
  2. hiveservice2が占有されているかどうかを確認します



    netstat -anop|grep 10000

    占有されている場合は、kill -9 portを使用しますプロセスを強制終了します

  3. 次のコンテンツをHadoopcore-site.xmlファイルに追加します



    <property> <name>hadoop.proxyuser.hadoop.hosts</name> <value>*</value> <description> The 'nfsserver' user is allowed to proxy all members of the 'users-group1' and 'users-group2' groups. Note that in most cases you will need to include the group 'root' because the user 'root' (which usually belonges to 'root' group) will generally be the user that initially executes the mount on the NFS client system. Set this to '*' to allow nfsserver user to proxy any group. </description> </property> <property> <name>hadoop.proxyuser.hadoop.groups</name> <value>*</value> <description> This is the host where the nfs gateway is running. Set this to '*' to allow requests from any hosts to be proxied. </description> </property>

    画像

  4. 次の2つのディレクトリに777権限を付与します
    画像

    [root@xxxxx hadoop-2.7.2]$ bin/hadoop fs -chmod 777 /tmp [root@xxxxx hadoop-2.7.2]$ bin/hadoop fs -chmod 777 /user/hive/warehouse
  5. Hadoopサービスをシャットダウンして再起動します



    stop-dfs.sh stop-yarn.sh start-dfs.sh start-yarn.sh bin/hiveservice2 & //Background process(Daemon) bin/hive or bin/beeline

    通常の操作
    画像