Im getting error while connecting presto server to hive metastore.
Here is my hive.properties:
connector.name=hive-hadoop2 hive.metastore.uri=thrift://localhost:9083 hive.config.resources=/home/eweb/Downloads/hadoop/etc/hadoop/core-site.xml,/home/eweb/Downloads/hadoop/etc/hadoop/hdfs-site.xml And here is my hive-site.xml :
<property> <name>hive.metastore.uri</name> <value>thrift://localhost:9083</value> </property> <property> <name>hive.metastore.schema.verification</name> <value>true</value> </property> <property> <name>hive.metastore.warehouse.dir</name> <value>/user/hive/warehouse</value> <description>location of default database for the warehouse</description> </property> <property> <name>javax.jdo.option.ConnectionURL</name> <value>jdbc:mysql://localhost:3306/Demo?createDatabaseIfNotExist=true</value> </property> <property> <name>javax.jdo.option.ConnectionDriverName</name> <value>com.mysql.jdbc.Driver</value> </property> <property> <name>javax.jdo.option.ConnectionUserName</name> <value>root</value> </property> <property> <name>javax.jdo.option.ConnectionPassword</name> <value>password</value> </property> I have tried this in terminal :
bin/presto --server localhost:8080 --catalog hive --schema bookvip presto:bookvip> SHOW SCHEMAS; Is there any kind of setup error or any other error ??
62 Answers
I just use the following commands step by step:
sudo netstat -tulpn | grep 9083 Then kill the process using this command
sudo kill -s 9 processid And run once again
hive --service metastore In my case, I missed to run the hive metastore service and so the error "Failed to connect to the MetaStore Server..." To resolve, go to /usr/local/Cellar/hive/3.1.2_3/bin and run:
hive --service metastore