[
https://issues.apache.org/jira/browse/AMBARI-2215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13670063#comment-13670063
]
Yusaku Sako commented on AMBARI-2215:
-------------------------------------
ambari-log4j is a contrib module for Ambari.
You can either build it from source by doing:
{noformat}
# cd AMBARI_DIR/contrib/ambari-log4j
# mvn -X -B -e clean install package rpm:rpm -DskipTests
{noformat}
The RPM will be generated under
AMBARI_DIR/contrib/ambari-log4j/target/rpm/ambari-log4j/RPMS/noarch and you can
manually install the RPM.
Or, you can install a public Ambari repo on all the hosts:
{noformat}
# wget http://public-repo-1.hortonworks.com/ambari/centos6/1.x/GA/ambari.repo
# cp ambari.repo /etc/yum.repos.d
{noformat}
> Installation on clean machine fails due to absent repository
> ------------------------------------------------------------
>
> Key: AMBARI-2215
> URL: https://issues.apache.org/jira/browse/AMBARI-2215
> Project: Ambari
> Issue Type: Bug
> Components: agent
> Affects Versions: 1.4.0
> Environment: CentOS 6.4
> Reporter: Max
> Attachments: DataNode-instal2.log, DataNode-install.log
>
>
> The installation of DataNode failed during installation on a clean machine
> due to missing repository with packages.
> In the installation log present:
> err: /Stage[main]/Hdp-hadoop/Hdp-hadoop::Package[hadoop]/Hdp::Package[hadoop
> 64]/Hdp::Package::Process_pkg[hadoop 64]/Package[hadoop-lzo]/ensure: change
> from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y
> install hadoop-lzo' returned 1: Error: Nothing to do
> err: /Stage[main]/Hdp-hadoop/Hdp-hadoop::Package[hadoop]/Hdp::Package[hadoop
> 64]/Hdp::Package::Process_pkg[hadoop 64]/Package[hadoop-lzo-native]/ensure:
> change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y
> install hadoop-lzo-native' returned 1: Error: Nothing to do
> err:
> /Stage[2]/Hdp-hadoop::Initialize/Hdp::Package[ambari-log4j]/Hdp::Package::Process_pkg[ambari-log4j]/Package[ambari-log4j]/ensure:
> change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0
> -y install ambari-log4j' returned 1: Error: Nothing to do
> And after it multiple lines which mentioned missing dependencies.
>
> notice:
> /Stage[2]/Hdp-hadoop::Initialize/Hdp::Package[ambari-log4j]/Hdp::Package::Process_pkg[ambari-log4j]/Anchor[hdp::package::ambari-log4j::end]:
> Dependency Package[ambari-log4j] has failures: true
> warning:
> /Stage[2]/Hdp-hadoop::Initialize/Hdp::Package[ambari-log4j]/Hdp::Package::Process_pkg[ambari-log4j]/Anchor[hdp::package::ambari-log4j::end]:
> Skipping because of failed dependencies
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira