Unable to start hive metastore service or hive-shell after configuring mysql with hive

前端 未结 2 1136
遥遥无期
遥遥无期 2021-01-26 23:44

I know this question asked already but those answers are not helping in any way.

I am spending more time to configure mysql with hive, Every time I encounter errors and

2条回答
  •  旧时难觅i
    2021-01-27 00:16

                copy mysql sql driver in $HIVE_HOME/lib folder
    
    
                change hive-site.xml file properties under $HIVE_HOME/conf
                #########################################################
    
                
                javax.jdo.option.ConnectionDriverName
                com.mysql.jdbc.Driver
                Driver class name for a JDBC metastore
                
    
    
    
                
                    javax.jdo.option.ConnectionURL
                    jdbc:mysql://localhost:3306/hive_metastore_db?createDatabaseIfNotExist=true
                  
    
    
    
                
                  datanucleus.autoCreateSchema
                  true
                
    
                
                  datanucleus.fixedDatastore
                  true
                
    
                
                 datanucleus.autoCreateTables
                 True
                 
    
                 
                    javax.jdo.option.ConnectionPassword
                    root
                    password to use against metastore database
                  
    
    
                 
                    javax.jdo.option.ConnectionUserName
                    root
                    Username to use against metastore database
                  
              #############################
    

提交回复
热议问题