Advertisement
Guest User

Untitled

a guest
Jan 26th, 2017
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.01 KB | None | 0 0
  1. Logging initialized using configuration in file:/usr/local/someuser/hive/conf/hive-log4j.properties
  2. Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient
  3. at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:346)
  4. at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681)
  5. at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:625)
  6. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  7. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  8. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  9. at java.lang.reflect.Method.invoke(Method.java:606)
  10. at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
  11. Caused by: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient
  12. at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1412)
  13. at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:62)
  14. at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:72)
  15. at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:2453)
  16. at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:2465)
  17. at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:340)
  18. ... 7 more
  19. Caused by: java.lang.reflect.InvocationTargetException
  20. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  21. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
  22. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  23. at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
  24. at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1410)
  25. ... 12 more
  26. Caused by: javax.jdo.JDOFatalUserException: There is no available StoreManager of type "rdbms". Make sure that you have put the relevant DataNucleus store plugin in your CLASSPATH and if defining a connection via JNDI or DataSource you also need to provide persistence property "datanucleus.storeManagerType"
  27. NestedThrowables:
  28. org.datanucleus.exceptions.NucleusUserException: There is no available StoreManager of type "rdbms". Make sure that you have put the relevant DataNucleus store plugin in your CLASSPATH and if defining a connection via JNDI or DataSource you also need to provide persistence property "datanucleus.storeManagerType"
  29. at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:528)
  30. at org.datanucleus.api.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.java:788)
  31. at org.datanucleus.api.jdo.JDOPersistenceManagerFactory.createPersistenceManagerFactory(JDOPersistenceManagerFactory.java:333)
  32. at org.datanucleus.api.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerFactory.java:202)
  33. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  34. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  35. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  36. at java.lang.reflect.Method.invoke(Method.java:606)
  37. at javax.jdo.JDOHelper$16.run(JDOHelper.java:1965)
  38. at java.security.AccessController.doPrivileged(Native Method)
  39. at javax.jdo.JDOHelper.invoke(JDOHelper.java:1960)
  40. at javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1166)
  41. at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:808)
  42. at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:701)
  43. at org.apache.hadoop.hive.metastore.ObjectStore.getPMF(ObjectStore.java:310)
  44. at org.apache.hadoop.hive.metastore.ObjectStore.getPersistenceManager(ObjectStore.java:339)
  45. at org.apache.hadoop.hive.metastore.ObjectStore.initialize(ObjectStore.java:248)
  46. at org.apache.hadoop.hive.metastore.ObjectStore.setConf(ObjectStore.java:223)
  47. at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:62)
  48. at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117)
  49. at org.apache.hadoop.hive.metastore.RawStoreProxy.<init>(RawStoreProxy.java:58)
  50. at org.apache.hadoop.hive.metastore.RawStoreProxy.getProxy(RawStoreProxy.java:67)
  51. at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.newRawStore(HiveMetaStore.java:497)
  52. at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.getMS(HiveMetaStore.java:475)
  53. at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultDB(HiveMetaStore.java:523)
  54. at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:397)
  55. at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.<init>(HiveMetaStore.java:356)
  56. at org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:54)
  57. at org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:59)
  58. at org.apache.hadoop.hive.metastore.HiveMetaStore.newHMSHandler(HiveMetaStore.java:4944)
  59. at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:171)
  60. ... 17 more
  61. Caused by: org.datanucleus.exceptions.NucleusUserException: There is no available StoreManager of type "rdbms". Make sure that you have put the relevant DataNucleus store plugin in your CLASSPATH and if defining a connection via JNDI or DataSource you also need to provide persistence property "datanucleus.storeManagerType"
  62. at org.datanucleus.NucleusContext.createStoreManagerForProperties(NucleusContext.java:1217)
  63. at org.datanucleus.NucleusContext.initialise(NucleusContext.java:356)
  64. at org.datanucleus.api.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.java:775)
  65. ... 46 more
  66.  
  67. <configuration>
  68. <property>
  69. <name>mapred.reduce.tasks</name>
  70. <value>6</value>
  71. <name>mapred.map.tasks</name>
  72. <value>7</value>
  73. </property>
  74.  
  75. <property>
  76. <name>hive.exec.scratchdir</name>
  77. <value>/data/cloud/hive/logs/hive-${user.name}</value>
  78. </property>
  79.  
  80. <property>
  81. <name>hive.exec.local.scratchdir</name>
  82. <value>/data/cloud/hive/logs/hive-${user.name}</value>
  83. </property>
  84.  
  85. <property>
  86. <name>javax.jdo.option.ConnectionURL</name>
  87. <value>jdbc:mysql://somehost:3306/hive?createDatabaseIfNotExist=true</value>
  88. <description>JDBC connect string for a JDBC metastore</description>
  89. </property>
  90.  
  91. <property>
  92. <name>javax.jdo.option.ConnectionDriverName</name>
  93. <value>com.mysql.jdbc.Driver</value>
  94. <description>Driver class name for a JDBC metastore</description>
  95. </property>
  96.  
  97. <property>
  98. <name>javax.jdo.option.ConnectionUserName</name>
  99. <value>xx</value>
  100. <description>username to use against metastore database</description>
  101. </property>
  102.  
  103. <property>
  104. <name>javax.jdo.option.ConnectionPassword</name>
  105. <value>xx</value>
  106. <description>password to use against metastore database</description>
  107. </property>
  108.  
  109.  
  110. <property>
  111. <name>hive.metastore.warehouse.dir</name>
  112. <value>/user/hive/warehouse</value>
  113. <description>location of default database for the warehouse</description>
  114. </property>
  115.  
  116.  
  117. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement