[
https://issues.apache.org/jira/browse/GRIFFIN-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16729637#comment-16729637
]
Lionel Liu commented on GRIFFIN-223:
------------------------------------
Hi [~dna.dgw.engg], for the livy error, we're using livy 0.3.0 in our docker
image, we had also tried livy 0.4.0 for some experiments, I think it should
work.
For the curl command you listed here
bq. 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"
You can refer to the livy submission code here:
bq.
https://github.com/apache/griffin/blob/master/service/src/main/java/org/apache/griffin/core/job/SparkSubmitJob.java#L117
The difference seems like the user information. Would you have a try of the
curl command without the user info?
Maybe you livy service requires authentication, which is not supported in
Griffin at current. You can have a try and help us add such a feature, that
would be helpful, thanks.
> "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: Griffin_FOUND.jpg, Infolog1.log, Log.log,
> 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)