1、hive问题

  1. 没有初始化

    Exception in thread “main” java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

image.png

解决办法,执行: ./schematool -initSchema -dbType mysql

  1. 没有打开Hadoop集群

    Exception in thread “main” java.lang.RuntimeException: java.net.ConnectException: Call From master/192.168.60.128 to master:8020 failed on connection exception: java.net.ConnectException: 拒绝连接; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused

image.png

解决办法,打开Hadoop集群

  1. Hadoop安全模式

    Exception in thread “main” java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hdfs.server.namenode.SafeModeException): Cannot create directory /tmp/hive. Name node is in safe mode. The reported blocks 6 has reached the threshold 0.9990 of total blocks 6. The number of live datanodes 1 has reached the minimum number 0. In safe mode extension. Safe mode will be turned off automatically in 7 seconds.

image.png

解决办法,退出安全模式: hadoop dfsadmin -safemode leave

  1. 没有加入jar包