Oozie Installation error-bin/mkdistro.sh -DskipTests - maven

hduser#kas-XX:/usr/lib/Oozie/oozie-4.3.0$ bin/mkdistro.sh -DskipTests
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
Downloading from central: http://repo1.maven.org/maven2/org/apache/apache/17/apache-17.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.apache.oozie:oozie-main:4.3.0: Could not transfer artifact org.apache:apache:pom:17 from/to central (http://repo1.maven.org/maven2): Failed to transfer file: http://repo1.maven.org/maven2/org/apache/apache/17/apache-17.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. and 'parent.relativePath' points at wrong local POM # line 21, column 13
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.apache.oozie:oozie-main:4.3.0 (/usr/lib/Oozie/oozie-4.3.0/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.apache.oozie:oozie-main:4.3.0: Could not transfer artifact org.apache:apache:pom:17 from/to central (http://repo1.maven.org/maven2): Failed to transfer file: http://repo1.maven.org/maven2/org/apache/apache/17/apache-17.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. and 'parent.relativePath' points at wrong local POM # line 21, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
ERROR, Oozie distro creation failed
Version Information:
Hadoop 3.1.2,
openjdk version "11.0.5" ,
Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 11.0.5, vendor: Private Build, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_IN, platform encoding: UTF-8
OS name: "linux", version: "5.3.0-26-generic", arch: "amd64", family: "unix",
Ubuntu 18.04
{personal hadoop environment and single node}

Related

Maven error when trying to install Apache Ambari on Ubuntu

I am trying to install Apache Ambari using the installation instructions at https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.5
I receive the following error whenever I run any of the maven (mvn) commands:
[INFO] Scanning for projects...
Downloading from apache.snapshots.https: https://repository.apache.org/content/repositories/snapshots/org/apache/maven/wagon/wagon-ssh-external/maven-metadata.xml
Downloading from maven2-repository.atlassian: https://maven.atlassian.com/repository/public/org/apache/maven/wagon/wagon-ssh-external/maven-metadata.xml
Downloading from maven2-repository.dev.java.net: https://download.java.net/maven/2/org/apache/maven/wagon/wagon-ssh-external/maven-metadata.xml
Downloading from maven2-glassfish-repository.dev.java.net: https://download.java.net/maven/glassfish/org/apache/maven/wagon/wagon-ssh-external/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-ssh-external/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.wagon:wagon-ssh-external/maven-metadata.xml from/to maven2-repository.dev.java.net (https://download.java.net/maven/2/): transfer failed for https://download.java.net/maven/2/org/apache/maven/wagon/wagon-ssh-external/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.wagon:wagon-ssh-external/maven-metadata.xml from/to maven2-glassfish-repository.dev.java.net (https://download.java.net/maven/glassfish/): transfer failed for https://download.java.net/maven/glassfish/org/apache/maven/wagon/wagon-ssh-external/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.wagon:wagon-ssh-external/maven-metadata.xml from/to maven2-repository.atlassian (https://maven.atlassian.com/repository/public): transfer failed for https://maven.atlassian.com/repository/public/org/apache/maven/wagon/wagon-ssh-external/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.wagon:wagon-ssh-external/maven-metadata.xml from/to apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots): transfer failed for https://repository.apache.org/content/repositories/snapshots/org/apache/maven/wagon/wagon-ssh-external/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.wagon:wagon-ssh-external/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-ssh-external/maven-metadata.xml
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.zookeeper:zookeeper:jar -> duplicate declaration of version (?) # line 124, column 17
[ERROR] Unresolveable build extension: Error resolving version for plugin 'org.apache.maven.wagon:wagon-ssh-external' from the repositories [local (/home/vagrant/.m2/repository), maven2-repository.dev.java.net (https://download.java.net/maven/2/), maven2-glassfish-repository.dev.java.net (https://download.java.net/maven/glassfish/), maven2-repository.atlassian (https://maven.atlassian.com/repository/public), apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots), central (https://repo.maven.apache.org/maven2)]: Plugin not found in any plugin repository #
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-compiler-plugin # line 334, column 15
[WARNING] 'build.plugins.plugin.version' for org.vafer:jdeb is missing. # line 132, column 15
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.apache.ambari:ambari-agent:2.7.6.0.0 (/home/vagrant/ambari-src/apache-ambari-2.7.6-src/ambari-agent/pom.xml) has 1 error
[ERROR] Unresolveable build extension: Error resolving version for plugin 'org.apache.maven.wagon:wagon-ssh-external' from the repositories [local (/home/vagrant/.m2/repository), maven2-repository.dev.java.net (https://download.java.net/maven/2/), maven2-glassfish-repository.dev.java.net (https://download.java.net/maven/glassfish/), maven2-repository.atlassian (https://maven.atlassian.com/repository/public), apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots), central (https://repo.maven.apache.org/maven2)]: Plugin not found in any plugin repository -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
I have the latest version of Ambari (2.7.6) and the latest version of Maven (3.8.6)
Here is the output of mvn -version
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: /opt/maven
Java version: 1.8.0_292, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-170-generic", arch: "amd64", family: "unix"

Errors executing Maven (MacOs Catalina) : Unresolveable build extension / Python configuration for SNAP (ESA)

I try to configure Python for SNAP software. As it is recommanded in this forum (https://forum.step.esa.int/t/unable-to-install-snappy-jpy-problem/5372/28) I have installed maven and followed the steps :
brew install maven
cd jpy
python setup.py bdist_wheel
I get the following errors :
installing to build/bdist.macosx-10.9-x86_64/wheel
running install
running maven
Executing Maven goal 'package'
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-ssh/1.0-beta-7/wagon-ssh-1.0-beta-7.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.apache.maven.wagon:wagon-ssh:1.0-beta-7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7 #
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.jpy:jpy:0.10.0-SNAPSHOT (/Users/laura/jpy/pom.xml) has 1 error
[ERROR] Unresolveable build extension: Plugin org.apache.maven.wagon:wagon-ssh:1.0-beta-7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7: Could not transfer artifact org.apache.maven.wagon:wagon-ssh:pom:1.0-beta-7 from/to central (https://repo.maven.apache.org/maven2): transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-ssh/1.0-beta-7/wagon-ssh-1.0-beta-7.pom: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
Many topics raising a similar issue are solved by reconfiguring proxy or firewall. As I work on my own computer (macOS Catalina 10.15.7), without proxy or firewall, and as I don't have any knowledge of how it works, all help is welcome !
Thanks in advance,

maven package issues with dspace

I am teaching DSpace for MLIS students and when I give mvn package, I get the following error (file attached).
I try to install DSpace on Windows 7 with the following set of files. which in the past I have succeeded several times. As we could not upgrade the OS in the computer lab, I am stuck to teach the same installation, this time too.
jdk1.6.0_38,
apache-ant-1.9.2,
apache-maven-3.0.5,
apache tomcat 7.0,
dspace-3.2-src-release.
Kindly help me resolve.
The error log file:
C:\dspace\dspace-3.2-src-release\dspace>mvn package
[INFO] Scanning for projects...
Downloading: http://oss.sonatype.org/content/repositories/releases/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Downloading: http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.dspace:dspace:3.2 (C:\dspace\dspace-3.2-src-release\dspace\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.dspace:dspace-parent:3.2: Could not transfer artifact org.sonatype.oss:oss-parent:pom:7 from/to sonatype-releases
(http://oss.sonatype.org/content/repositories/releases/): peer not authenticated and 'parent.relativePath' points at wrong local POM # org.dspace:dspace-parent:3.2, C:\dspace\dspace-3.2-src-release\pom.xml, line 17, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
C:\dspace\dspace-3.2-src-release\dspace>

Non-resolvable import POM. Could not transfer artifact

I am setting up a Maven project (works fine on windows) on Mac. When I run Maven install (via Eclipse) on the project I get the below error.
[INFO] Scanning for projects...
[INFO] Downloading: https://repo.maven.apache.org/maven2/com/americanexpress/javara/ra-components-jboss/6.0/ra-components-jboss-6.0.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com. americanexpress. merchant. gms. grd: grdhomeui: 1.0-SNAPSHOT (/Users/ psivapr/ git/ grd-ui/ pom.xml) has 1 error
[ERROR] Non-resolvable import POM: Could not transfer artifact com. americanexpress. javara: ra-components- jboss: pom: 6.0 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: unknown error # line 23, column 16: Unknown host repo.maven.apache.org: unknown error -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
Please let me know what I am missing.
Check your hosts file and DNS on the Mac workstation
The following error fragment:
unknown error # line 23, column 16: Unknown host repo.maven.apache.org
indicates that the repo.maven.aphache.org host is not being found on your Mac.
Check your hosts and DNS settings on the Mac, and make sure the site is reachable. There may be a network settings misconfiguration on your Mac that is not present on your Windows workstation.

Unresolveable build extension in Maven

I am getting below error while building maven project.
[INFO] Scanning for projects...
Downloading: http://repo.jfrog.org/artifactory/plugins-releases-local/org/jfrog/maven/annomo
jo/maven-plugin-tools-anno/1.4.0/maven-plugin-tools-anno-1.4.0.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.mule.tools.maven:mule-app-maven-plugin:1.0
or one of its dependencies could not be resolved: Failed to collect dependencies at org.mul
e.tools.maven:mule-app-maven-plugin:jar:1.0 -> org.jfrog.maven.annomojo:maven-plugin-tools-a
nno:jar:1.4.0 #
[ERROR] Unknown packaging: mule # line 6, column 13
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.test:testproj:1.0.1 (C:\Users\john\proj\testproj
c\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin org.mule.tools.maven:mule-app-maven-plugin
:1.0 or one of its dependencies could not be resolved: Failed to collect dependencies at org
.mule.tools.maven:mule-app-maven-plugin:jar:1.0 -> org.jfrog.maven.annomojo:maven-plugin-too
ls-anno:jar:1.4.0: Failed to read artifact descriptor for org.jfrog.maven.annomojo:maven-plu
gin-tools-anno:jar:1.4.0: Could not transfer artifact org.jfrog.maven.annomojo:maven-plugin-
tools-anno:pom:1.4.0 from/to jfrog (http://repo.jfrog.org/artifactory/plugins-releases-local
): Connect to repo.jfrog.org:80 [repo.jfrog.org/52.200.110.120, repo.jfrog.org/52.73.83.233]
failed: Connection refused: connect -> [Help 2]
[ERROR] Unknown packaging: mule # line 6, column 13
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the follow
ing articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
Earlier we got connection refused for different IP. we opened the firewall for the same. Now it is showing differnt IP for connection refused.
Could you please help us on this to reslove the issue?

Resources