What's hive-site.xml including in $SPARK_HOME looks like?

前端 未结 4 1735
一向
一向 2021-01-24 19:32

I am a beginner at hive, something happened (can not find table) when I start spark job and read data from hive. I don\'t set hive-site.xml in $SPARK_HOME/conf ?

submit

4条回答
  •  长发绾君心
    2021-01-24 20:04

    hive-site.xml look like the following .

    
        
            javax.jdo.option.ConnectionURL
            jdbc:mysql://localhost/metastore_db?createDatabaseIfNotExist=true
            metadata is stored in a MySQL server
        
        
            javax.jdo.option.ConnectionDriverName
            com.mysql.jdbc.Driver
            MySQL JDBC driver class
        
        
            javax.jdo.option.ConnectionUserName
            USER
            user name for connecting to mysql server 
        
        
            javax.jdo.option.ConnectionPassword
            PASSWORD
            password for connecting to mysql server 
        
    
    

提交回复
热议问题