[
https://issues.apache.org/jira/browse/GRIFFIN-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16722958#comment-16722958
]
Kevin Yao commented on GRIFFIN-223:
-----------------------------------
hi [~dna.dgw.engg]
By comparing curl command with Livy post, I guess it may be caused by the
X-Requested-By.
>From griffin logs, you are using 0.2.0 version. In 0.3.0 or latest version, we
>have added X-Requested-By property to http header before livy submits request.
Could you pull lastest code from [https://github.com/apache/griffin/] and try
again?
Thanks,
Kevin
> "Post to livy error. 401 Credentials missing or Auth is not Basic"
> ------------------------------------------------------------------
>
> Key: GRIFFIN-223
> URL: https://issues.apache.org/jira/browse/GRIFFIN-223
> Project: Griffin (Incubating)
> Issue Type: Bug
> Affects Versions: 0.2.0-incubating
> Environment: Azure HDInsight
> Reporter: Infosys
> Priority: Major
> Fix For: 0.2.0-incubating
>
> Attachments: log1_05Dec2018.log, log2_05Dec2018.log
>
>
> Hi
> We are getting error ""Post to livy error. 401 Credentials missing or Auth is
> not Basic" for Griffin installed on Azure with HDInsight Cluster. below curl
> command is successful but we are unable to get Livy working.
>
> curl -k --user "admin:admin" -v -H "Content-Type: application/json" -X POST
> -d '\{
> "file":"wasb://[email protected]/apps/griffin-measure.jar",
> "className":"org.apache.griffin.measure.Application" }'
> "https://xxxxxx.azurehdinsight.net/livy/batches" -H "X-Requested-By: admin"
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)