Advertisement
Guest User

Untitled

a guest
May 4th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. 1. Make sure hive is installed on your EMR instance
  2.  
  3. 2. Can't SSH into EMR master?
  4.  
  5. Error: Connection Refused --> check your security group permissions
  6.  
  7. Go to EC2 dashboard.
  8. Select your master instance.
  9. In the 'Description' tab, click the Security Group (probably ElasticMapReduce-master).
  10. Under the 'Inbound' tab, add a rule for SSH.
  11.  
  12. 3. Getting java errors when running 'hive' command
  13.  
  14. Username error: make an MySQL instance on RDS. Then add this as a file called 'hive-site.xml' under ~/hive/conf/hive-site.xml:
  15.  
  16. <configuration>
  17. <property>
  18. <name>javax.jdo.option.ConnectionURL</name>
  19. <value>jdbc:mysql://YOURHOSTNAME:3306/hive?createDatabaseIfNotExist=true</value>
  20. <description>JDBC connect string for a JDBC metastore</description>
  21. </property>
  22. <property>
  23. <name>javax.jdo.option.ConnectionUserName</name>
  24. <value>YOURUSERNAME</value>
  25. <description>Username to use against metastore database</description>
  26. </property>
  27. <property>
  28. <name>javax.jdo.option.ConnectionPassword</name>
  29. <value>YOURPASSWORD</value>
  30. <description>Password to use against metastore database</description>
  31. </property>
  32. </configuration>
  33.  
  34. Getting MissingTableException: Required table missing VERSION when starting hive on mysql
  35.  
  36. Go to ~/hive/bin/ and run this:
  37.  
  38. schematool -dbType mysql -initSchema
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement