[ 
https://issues.apache.org/jira/browse/GRIFFIN-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16731590#comment-16731590
 ] 

Infosys commented on GRIFFIN-223:
---------------------------------

Hi,

After adding below code in SparkSubmitJob.java (post2Livy() method) our jobs 
are getting in STARTING state.

String auth = "****" + ":" + "****";
byte [] authentication = auth.getBytes();
byte[] base64Authentication = Base64Utils.encode(authentication);
String baseCredential = new String(base64Authentication);
headers.add(HttpHeaders.AUTHORIZATION, "Basic " + baseCredential);
headers.setAccept(Collections.singletonList(MediaType.TEXT_PLAIN));

 

However we are getting same error/warn,

WARN 29130 --- [pool-4-thread-1] o.a.g.c.j.JobServiceImpl                 : 
sessionId(47) appId(null) 401 Credentials missing or Auth is not Basic. 
[^Log2.log]

 

Thanks and Happy new year.

 

> "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, Log2.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)

Reply via email to