-
Make sure hive is installed on your EMR instance
-
Can't SSH into EMR master?
Error: Connection Refused --> check your security group permissions
Go to EC2 dashboard. Select your master instance. In the 'Description' tab, click the Security Group (probably ElasticMapReduce-master). Under the 'Inbound' tab, add a rule for SSH.
- Getting java errors when running 'hive' command
java.sql.SQLException: Access denied for user 'hive'@'localhost' (using password: YES)
Make an MySQL instance on RDS. Then add this as a file called 'hive-site.xml' under ~/hive/conf/hive-site.xml:
javax.jdo.option.ConnectionURL jdbc:mysql://YOURHOSTNAME:3306/hive?createDatabaseIfNotExist=true JDBC connect string for a JDBC metastore javax.jdo.option.ConnectionUserName YOURUSERNAME Username to use against metastore database javax.jdo.option.ConnectionPassword YOURPASSWORD Password to use against metastore databaseGetting MissingTableException: Required table missing VERSION when starting hive on mysql
Go to ~/hive/bin/ and run this:
schematool -dbType mysql -initSchema