Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
- <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
- <configuration>
- <property>
- <name>javax.jdo.option.ConnectionURL</name>
- <value>jdbc:mysql://localhost/metastore?createDatabaseIfNotExist=true</value>
- <description>metadata is stored in a MySQL server</description>
- </property>
- <property>
- <name>javax.jdo.option.ConnectionDriverName</name>
- <value>com.mysql.jdbc.Driver</value>
- <description>MySQL JDBC driver class</description>
- </property>
- <property>
- <name>javax.jdo.option.ConnectionUserName</name>
- <value>hiveuser</value>
- <description>user name for connecting to mysql server</description>
- </property>
- <property>
- <name>javax.jdo.option.ConnectionPassword</name>
- <value>hivepassword</value>
- <description>password for connecting to mysql server</description>
- </property>
- </configuration>
- export HADOOP_HOME=/usr/local/hadoop
- hduser@master:/usr/local/hive/conf$ schematool -initSchema -dbType mysql
- Metastore connection URL: jdbc:mysql://localhost/metastore?createDatabaseIfNotExist=true
- Metastore Connection Driver : com.mysql.jdbc.Driver
- Metastore connection User: hiveuser
- 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.
- Starting metastore schema initialization to 2.1.0
- Initialization script hive-schema-2.1.0.mysql.sql
- 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.
- Error: Duplicate key name 'PCS_STATS_IDX' (state=42000,code=1061)
- org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization FAILED! Metastore state would be inconsistent !!
- Underlying cause: java.io.IOException : Schema script failed, errorcode 2
- Use --verbose for detailed stacktrace.
- *** schemaTool failed ***
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement