[ 
https://issues.apache.org/jira/browse/OOZIE-1751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

purshotam shah updated OOZIE-1751:
----------------------------------

    Attachment: OOZIE-1751.patch

Patch.
No testcase, tested manually works fine.

$ export OOZIE_AUTH=
$ ./oozie job -log 0000001-140318185332678-oozie-puru-W  -oozie 
http://localhost:11000/oozie -debug 
  Auth type :   
GET 
http://localhost:11000/oozie/v2/job/0000001-140318185332678-oozie-puru-W?show=log
Error: E0604 : E0604: Job does not exist [0000001-140318185332678-oozie-puru-W]
$ export OOZIE_AUTH=KERBEROS
$ ./oozie job -log 0000001-140318185332678-oozie-puru-W  -oozie 
http://localhost:11000/oozie -debug -auth KERBEROS
  Auth type :  KERBEROS
GET 
http://localhost:11000/oozie/v2/job/0000001-140318185332678-oozie-puru-W?show=log
Error: E0604 : E0604: Job does not exist [0000001-140318185332678-oozie-puru-W]
$ ./oozie job -log 0000001-140318185332678-oozie-puru-W  -oozie 
http://localhost:11000/oozie -debug -auth 
Invalid sub-command: Missing argument for option: auth

use 'help [sub-command]' for help details
$ ./oozie job -log 0000001-140318185332678-oozie-puru-W  -oozie 
http://localhost:11000/oozie -debug 
  Auth type :  KERBEROS
GET 
http://localhost:11000/oozie/v2/job/0000001-140318185332678-oozie-puru-W?show=log
Error: E0604 : E0604: Job does not exist [0000001-140318185332678-oozie-puru-W]
$ ./oozie job -log 0000001-140318185332678-oozie-puru-W  -oozie 
http://localhost:11000/oozie -debug -auth simple
  Auth type :  simple
GET 
http://localhost:11000/oozie/v2/job/0000001-140318185332678-oozie-puru-W?show=log
Error: E0604 : E0604: Job does not exist [0000001-140318185332678-oozie-puru-W]
$ ./oozie job -log 0000001-140318185332678-oozie-puru-W  -oozie 
http://localhost:11000/oozie -debug 
  Auth type :  KERBEROS
GET 
http://localhost:11000/oozie/v2/job/0000001-140318185332678-oozie-puru-W?show=log
Error: E0604 : E0604: Job does not exist [0000001-140318185332678-oozie-puru-W]


> Default authorization type(using env variable) for oozieCLI
> -----------------------------------------------------------
>
>                 Key: OOZIE-1751
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1751
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: purshotam shah
>            Assignee: purshotam shah
>         Attachments: OOZIE-1751.patch
>
>
> This way a user can set the default auth type and not have to pass the -auth
> parameter with every command.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to