Advertisement
Guest User

Untitled

a guest
Sep 11th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  3. <configuration>
  4. <property>
  5. <name>javax.jdo.option.ConnectionURL</name>
  6. <value>jdbc:mysql://localhost/metastore?createDatabaseIfNotExist=true</value>
  7. <description>metadata is stored in a MySQL server</description>
  8. </property>
  9. <property>
  10. <name>javax.jdo.option.ConnectionDriverName</name>
  11. <value>com.mysql.jdbc.Driver</value>
  12. <description>MySQL JDBC driver class</description>
  13. </property>
  14. <property>
  15. <name>javax.jdo.option.ConnectionUserName</name>
  16. <value>hiveuser</value>
  17. <description>user name for connecting to mysql server</description>
  18. </property>
  19. <property>
  20. <name>javax.jdo.option.ConnectionPassword</name>
  21. <value>hivepassword</value>
  22. <description>password for connecting to mysql server</description>
  23. </property>
  24. </configuration>
  25.  
  26. export HADOOP_HOME=/usr/local/hadoop
  27.  
  28. hduser@master:/usr/local/hive/conf$ schematool -initSchema -dbType mysql
  29. Metastore connection URL: jdbc:mysql://localhost/metastore?createDatabaseIfNotExist=true
  30. Metastore Connection Driver : com.mysql.jdbc.Driver
  31. Metastore connection User: hiveuser
  32. Mon Sep 11 04:46:40 PDT 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
  33. Starting metastore schema initialization to 2.1.0
  34. Initialization script hive-schema-2.1.0.mysql.sql
  35. Mon Sep 11 04:46:41 PDT 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
  36. Error: Duplicate key name 'PCS_STATS_IDX' (state=42000,code=1061)
  37. org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization FAILED! Metastore state would be inconsistent !!
  38. Underlying cause: java.io.IOException : Schema script failed, errorcode 2
  39. Use --verbose for detailed stacktrace.
  40. *** schemaTool failed ***
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement