我使用所有必需的屬性更新了hive-site.xml,但我無法理解此錯誤發生的位置。如何將Metastore連接到配置單元並啓動配置單元?在更新元存儲屬性之前,hive shell正常工作。 任何人都可以解決這個錯誤?無法存儲Hive Metastore服務器和配置單元外殼
[Hadoop的@ hduser設置] $蜂巢--service metastore 啓動蜂巢Metastore服務器 17/01/02 18時01分01秒WARN conf.HiveConf:名稱hive.metastore.local的HiveConf不存在 org.apache.thrift.transport.TTransportException:無法在地址0.0.0.0/0.0.0.0:9083上創建ServerSocket。 (org.apache.thrift.transport.TServerSocket)(TServerSocket.java:109) at org.apache.thrift.transport.TServerSocket。(TServerSocket.java:91) at org.apache.thrift.transport.TServerSocket。 (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 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl。 java:43) at org.apache.hadoop.util.RunJar.run(RunJar.java:221) at org.apache.hadoop。java.lang.reflect.Method.invoke(Method.java:606) util.RunJar.main(RunJar.java:136) 線程「main」中的異常org.apache.thrift.transport.TTransportException:無法在地址0.0.0.0/0.0.0.0:9083上創建 ServerSocket。 (org.apache.thrift.transport.TServerSocket)(TServerSocket.java:109) at org.apache.thrift.transport.TServerSocket。(TServerSocket.java:91) at org.apache.thrift.transport.TServerSocket。 (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 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl。 java:43) at org.apache.hadoop.util.RunJar.run(RunJar.java:221) at org.apache.hadoop。java.lang.reflect.Method.invoke(Method.java:606) util.RunJar.main(RunJar.java:136)
蜂房的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>
'hive.metastore.uris'的值不是:'thrift:// localhost:9083'? –
你可以給本地主機或ipaddress – Yasodhara