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

Kevin Yao commented on GRIFFIN-223:
-----------------------------------

hi [~dna.dgw.engg]
 I use IntelliJ IDEA to build and develop Griffin. So before I did not 
encounter such an 
 error. Now I compile with eclipse and there are two problems similar to yours 
and hava solved it.

1.*Missing artifact jdk.tools:jdk.tools:jar:1.7*
add following dependency in *service/pom.xml*

{code:java}
<dependency>
        <groupId>jdk.tools</groupId>
        <artifactId>jdk.tools</artifactId>
        <version>1.7</version>
        <scope>system</scope>
        <systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
</dependency>
{code}
referrence: 
https://stackoverflow.com/questions/29195269/in-the-pom-xml-for-a-java-project-i-get-missing-artifact-jdk-toolsjdk-toolsja/42617547

2.*Plugin execution not covered by lifecycle configuration: 
net.alchim31.maven:scala-maven-plugin:3.3.1:compile*

create *</pluginManagement>*  element to update *measure/pom.xml* like the 
following:

{code:java}
<build>
<pluginManagement>
  <plugins>
    <plugin>
     <groupId>org.eclipse.m2e</groupId>
     <artifactId>lifecycle-mapping</artifactId>
     <version>1.0.0</version>
     <configuration>
       <lifecycleMappingMetadata>
         <pluginExecutions>
           <pluginExecution>
             <pluginExecutionFilter>
               <groupId>some-group-id</groupId>
               <artifactId>some-artifact-id</artifactId>
               <versionRange>[1.0.0,)</versionRange>
               <goals>
                 <goal>some-goal</goal>
               </goals>
             </pluginExecutionFilter>
             <action>
               <ignore/>
             </action>
           </pluginExecution>
         </pluginExecutions>
       </lifecycleMappingMetadata>
     </configuration>
    </plugin>
    <plugin>
        ……
    </plugin>
  </plugins>
</pluginManagement>
</build>
{code}
 
save pom.xml and errors are solved.
referrence: 
https://stackoverflow.com/questions/6352208/how-to-solve-plugin-execution-not-covered-by-lifecycle-configuration-for-sprin
   
https://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html

you can refer to the above solution 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)

Reply via email to