pass username and password to sqoop meta connect from oozie

前端 未结 2 1515
-上瘾入骨i
-上瘾入骨i 2020-12-22 09:46

  ${jobTracker}
    ${nameNode}
      &l         


        
2条回答
  •  死守一世寂寞
    2020-12-22 10:14

    --meta-connect should have value in jdbc:hsqldb:hsql://:/sqoop format(default is hsqldb). You can change it to mysql in your case.

    You can override below properties in sqoop-site.xml to pass the metastore username and password:

     
        sqoop.metastore.client.autoconnect.username
        SA
        The username to bind to the metastore.
        
      
      
        sqoop.metastore.client.autoconnect.password
        
        The password to bind to the metastore.
        
      
    

    --meta-connect will read the username and password from here and will connect to the database.

    You can refer the default sqoop-site.xml for more details

提交回复
热议问题