Support Questions
Find answers, ask questions, and share your expertise

how to build hive3 source code from hortonworks git repo

i've downloaded the HDP-3.1.0.78-4-tag source code from HDP git repo.

while trying to build the code using 

 

 

mvn clean package -Phadoop-3,dist

 

 

 

I'm getting below error:

 

 

[WARNING] The requested profile "hadoop-3" could not be activated because it does not exist.
[ERROR] Failed to execute goal on project hive-storage-api: Could not resolve dependencies for project org.apache.hive:hive-storage-api:jar:3.1.0.3.1.0.78-4: Could not find artifact org.apache.hadoop:hadoop-common:jar:3.1.1.3.1.0.78-4 in central (https://repo.maven.apache.org/maven2)

 

 

when i tried below command:

 

 

mvn clean package -DskipTests

 

 

i'm getting error as below:

 

 

[WARNING] The POM for org.apache.hadoop:hadoop-common:jar:3.1.1.3.1.0.78-4 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Hive 3.1.0.3.1.0.78-4:
[INFO]
[INFO] Hive Storage API ................................... FAILURE [  0.340 s]

:
:
:
[ERROR] Failed to execute goal on project hive-storage-api: Could not resolve dependencies for project org.apache.hive:hive-storage-api:jar:3.1.0.3.1.0.78-4: Failure to find org.apache.hadoop:hadoop-common:jar:3.1.1.3.1.0.78-4 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced ->

 

 

 

Can anyone help here?