Guest User

Untitled

a guest
Jun 22nd, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. 1) Extract Hadoop as hadoop-2.9.1
  2. 2) Extract Hive inside Hadoop Directory
  3. 3) Set JAVA_HOME to JDK installation folder
  4. 4) Set HADOOP_HOME to hadoop extracted directory
  5. 5) Set HIVE_HOME to hive extracted directory
  6. 6) Add $HIVE_HOME/bin to PATH env var
  7. 7) Verify MySQL installation
  8. 8) Create hive-site.xml inside $HIVE_HOME/conf directory and put contents as given below
  9.  
  10. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  11. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  12. <configuration>
  13.  
  14. <property>
  15. <name>javax.jdo.option.ConnectionURL</name>
  16. <value>jdbc:mysql://localhost/metastore?useSSL=false</value>
  17. </property>
  18.  
  19.  
  20. <property>
  21. <name>javax.jdo.option.ConnectionDriverName</name>
  22. <value>com.mysql.jdbc.Driver</value>
  23. </property>
  24.  
  25. <property>
  26. <name>javax.jdo.option.ConnectionUserName</name>
  27. <value>root</value>
  28. </property>
  29.  
  30. <property>
  31. <name>javax.jdo.option.ConnectionPassword</name>
  32. <value>2010ottawa</value>
  33. </property>
  34.  
  35. <property>
  36. <name>datanucleus.autoCreateSchema</name>
  37. <value>true</value>
  38. </property>
  39.  
  40. <property>
  41. <name>datanucleus.fixedDatastore</name>
  42. <value>true</value>
  43. </property>
  44.  
  45. <property>
  46. <name>datanucleus.autoCreateTables</name>
  47. <value>True</value>
  48. </property>
  49.  
  50. 9) Change properties inside $HIVE_HOME/conf/hive-site.xml as required
  51. 10) $HIVE_HOME/bin/schematool -initSchema -dbType mysql
Add Comment
Please, Sign In to add comment