You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "WenjunXiao (Jira)" <ji...@apache.org> on 2020/02/19 14:56:00 UTC

[jira] [Created] (OOZIE-3587) oozie cannot run hive job with nosasl

WenjunXiao created OOZIE-3587:
---------------------------------

             Summary: oozie cannot run hive job with nosasl
                 Key: OOZIE-3587
                 URL: https://issues.apache.org/jira/browse/OOZIE-3587
             Project: Oozie
          Issue Type: Improvement
          Components: action
         Environment: hadoop: 2.6.4

hbase: 1.2.2

hive: 1.2.2

oozie: 4.3.1

hue: 4.5.0

 
            Reporter: WenjunXiao


hive-site.xml set `hive.server2.authentication=NOSASL`, and submit a workflow in hue-4.5.0
{code:java}
<workflow-app name="test_no_sasl_flow" xmlns="uri:oozie:workflow:0.5">
    <start to="hive-e994"/>
    <kill name="Kill">
        <message>[${wf:errorMessage(wf:lastErrorNode())}]</message>
    </kill>
    <action name="hive-e994" cred="hive2">
        <hive2 xmlns="uri:oozie:hive2-action:0.1">
            <job-tracker>${jobTracker}</job-tracker>
            <name-node>${nameNode}</name-node>
            <jdbc-url>jdbc:hive2://172.100.0.11:10000/default;auth=noSasl</jdbc-url>
            <script>${wf:appPath()}/hive-e994.sql</script>
        </hive2>
        <ok to="End"/>
        <error to="Kill"/>
    </action>
    <end name="End"/>
</workflow-app>
{code}
hadoop container stderr log
{code:java}
Connecting to jdbc:hive2://172.100.0.11:10000/default;auth=noSasl
Error: Could not open client transport with JDBC Uri: jdbc:hive2://172.100.0.11:10000/default;auth=noSasl: java.net.SocketException: Connection reset (state=08S01,code=0)
No current connection
Error: Could not open client transport with JDBC Uri: jdbc:hive2://172.100.0.11:10000/default;auth=noSasl: null (state=08S01,code=0)
Intercepting System.exit(2)
Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.Hive2Main], exit code [2]
{code}
 container stdout log
{code:java}
...
Beeline command arguments :
             -u
             jdbc:hive2://172.100.0.11:10000/default;auth=noSasl
             -n
             hue
             -p
             DUMMY
             -d
             org.apache.hive.jdbc.HiveDriver
             -f
             hive-e994.sql
             -a
             delegationToken
             --hiveconf
             mapreduce.job.tags=oozie-3f5d6aeb66338cc0dde15e6927f4a2ad
             --hiveconf
             oozie.action.id=0000062-200219043903209-oozie-hado-W@hive-e994
             --hiveconf
             oozie.child.mapreduce.job.tags=oozie-3f5d6aeb66338cc0dde15e6927f4a2ad
             --hiveconf
             oozie.action.rootlogger.log.level=INFO
             --hiveconf
             oozie.job.id=0000062-200219043903209-oozie-hado-W
             --hiveconf
             oozie.HadoopAccessorService.created=true

Fetching child yarn jobs
tag id : oozie-3f5d6aeb66338cc0dde15e6927f4a2ad
Child yarn jobs are found - 
=================================================================

>>> Invoking Beeline command line now >>>

0: jdbc:hive2://172.100.0.11:10000/default (closed)> USE default;


<<< Invocation of Beeline command completed <<<

No child hadoop job is executed.
Intercepting System.exit(2)

<<< Invocation of Main class completed <<<
...{code}
I tested the command of beeline and found out that the argument `-a delegationToken` covered `nosasl`



--
This message was sent by Atlassian Jira
(v8.3.4#803005)