无法存储配置单元元存储服务器和配置单元外壳

unguejic  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(517)

我用所有必需的属性更新了hive-site.xml,但我无法从何处了解此错误。如何将metastore连接到配置单元外壳并启动配置单元?在更新元存储属性之前,hiveshell工作正常。有人能解决这个错误吗?
[hadoop@hduser conf]$hive—服务元存储启动配置单元元存储服务器17/01/02 18:01:01警告conf.hiveconf:名称为hive.metastore.local的hiveconf不存在org.apache.thrift.transport.tttransportException:无法在地址0.0.0.0/0.0.0:9083上创建serversocket。在org.apache.thrift.transport.tserversocket。java:109)在org.apache.thrift.transport.tserversocket。java:91)在org.apache.thrift.transport.tserversocket。java:83)在org.apache.hadoop.hive.metastore.tserversocketkeepalive.(tserversocketkeepalive。java:34)在org.apache.hadoop.hive.metastore.hivemetastore.startmetastore(hivemetastore)。java:5968)位于org.apache.hadoop.hive.metastore.hivemetastore.main(hivemetastore。java:5909)在sun.reflect.nativemethodaccessorimpl.invoke0(本机方法)在sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl)。java:57)在sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl。java:43)在java.lang.reflect.method.invoke(方法。java:606)在org.apache.hadoop.util.runjar.run(runjar。java:221)在org.apache.hadoop.util.runjar.main(runjar。java:136)线程“main”org.apache.thrift.transport.ttTransportException中出现异常:无法创建地址为0.0.0.0/0.0.0.0:9083的服务器套接字。在org.apache.thrift.transport.tserversocket。java:109)在org.apache.thrift.transport.tserversocket。java:91)在org.apache.thrift.transport.tserversocket。java:83)在org.apache.hadoop.hive.metastore.tserversocketkeepalive.(tserversocketkeepalive。java:34)在org.apache.hadoop.hive.metastore.hivemetastore.startmetastore(hivemetastore)。java:5968)位于org.apache.hadoop.hive.metastore.hivemetastore.main(hivemetastore。java:5909)在sun.reflect.nativemethodaccessorimpl.invoke0(本机方法)在sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl)。java:57)在sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl。java:43)在java.lang.reflect.method.invoke(方法。java:606)在org.apache.hadoop.util.runjar.run(runjar。java:221)在org.apache.hadoop.util.runjar.main(runjar。java:136)
hive-site.xml:

<property>
    <name>hive.exec.scratchdir</name>
    <value>/tmp/hive</value>
    <description>HDFS root scratch dir for Hive jobs which gets created with write all (733) permission. For each connecting user, an HDFS scratch dir: ${hive.exec.scr$
  </property>
  <property>
    <name>hive.exec.local.scratchdir</name>
    <value>/tmp/${user.name}</value>
    <description>Local scratch space for Hive jobs</description>
  </property>
  <property>
    <name>hive.downloaded.resources.dir</name>
    <value>/tmp/${user.name}_resources</value>
    <description>Temporary local directory for added resources in the remote file system.</description>
  </property> 
<property>
    <name>hive.scratch.dir.permission</name>
    <value>733</value>
    <description>The permission for the user specific scratch directories that get created.</description>
  </property>
 <property>
    <name>hive.metastore.warehouse.dir</name>
    <value>hdfs://localhost:54310/usr/local/hive</value>
    <description>
    Local or HDFS directory where Hive keeps table contents.
    </description>
</property>
<property>
  <name>hive.server2.thrift.port</name>
  <value>10000</value>
  <description>Port number of HiveServer2 Thrift interface.
  Can be overridden by setting $HIVE_SERVER2_THRIFT_PORT</description>
</property>

<property>
    <name>hive.metastore.local</name>
    <value>true</value>
    <description>
    Use false if a production metastore server is used.
    </description>
</property>
<property>
    <name>javax.jdo.option.ConnectionURL</name>
    <value>jdbc:mysql://localhost:3306/metastore</value>
  </property>
  <property>
    <name>javax.jdo.option.ConnectionUserName</name>
    <value>hiveuser</value>
  </property>
 <property>
    <name>javax.jdo.option.ConnectionPassword</name>
    <value>hive</value>
  </property>
  <property>
    <name>javax.jdo.option.ConnectionDriverName</name>
    <value>com.mysql.jdbc.Driver</value>
  </property>
  <property>
    <name>datanucleus.autoCreateSchema</name>
    <value>false</value>
  </property>
  <property>
    <name>datanucleus.fixedDatastore</name>
    <value>true</value>
  </property>

<property>
    <name>datanucleus.autoStartMechanism</name>
    <value>SchemaTable</value>
  </property>
  <property>
    <name>hive.metastore.uris</name>
    <value>thrift://192.168.122.1:9083</value>
  </property>
  <property>
    <name>hive.metastore.schema.verification</name>
    <value>false</value>
  </property>
laik7k3q

laik7k3q1#

似乎端口9083正忙,或者您的元存储没有运行,因为服务正在尝试其他端口

相关问题