3 answers
- 10-1
Ran the following steps manually in all 3 CDAP VMs
sudo su hdfs -c "JAVA_HOME=/opt/app/java/jdk/jdk170 hadoop fs -mkdir -p /cdap && hadoop fs -chown yarn /cdap"
sudo su hdfs -c "JAVA_HOME=/opt/app/java/jdk/jdk170 hadoop fs -mkdir -p /cdap/tx.snapshot && hadoop fs -chown yarn /cdap/tx.snapshot"
Also modified the interface eth1 configuration to static (because ssh will not work after reboot since both eth0 and eth1 interfaces uses DHCP and that's not correct).
Rebooted the 3 CDAP VMs and boom.
Add your comment... - 10-1
This is because executing apt-key using sudo
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 07513CAD
Even if we pass environment variables install-hortonworks-hadoop.sh the addition of key still fails.
sudo -E apt-key adv --keyserver keyserver.ubuntu.com --recv 07513CAD solved the problem.
But still its redirecting me to login page and from the notifications I can see following error
404 <HTML><HEAD> <TITLE>Network Error</TITLE> </HEAD> <BODY> <FONT face="Helvetica"> <big><strong></strong></big><BR> </FONT> <blockquote> <TABLE border=0 cellPadding=1 width="80%"> <TR><TD> <FONT face="Helvetica"> <big>Network Error (dns_unresolved_hostname)</big> <BR> <BR> </FONT> </TD></TR> <TR><TD> <FONT face="Helvetica"> Your requested host "zldcbm01njcdap02" could not be resolved by DNS. </FONT> </TD></TR> <TR><TD> <FONT face="Helvetica"> </FONT> </TD></TR> <TR><TD> <FONT face="Helvetica" SIZE=2> <BR> </FONT> </TD></TR> </TABLE> </blockquote> </FONT> </BODY></HTML>
However /etc/hosts in all 3 VMs are proper and resolving the hostname zldcbm01njcdap02
root@zldcbm01njcdap01:~# cat /etc/hosts
127.0.0.1 localhost# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
10.0.4.103 zldcbm01njcdap00.dcae.simpledemo.openecomp.org zldcbm01njcdap00
10.0.4.104 zldcbm01njcdap01.dcae.simpledemo.openecomp.org zldcbm01njcdap01
10.0.4.105 zldcbm01njcdap02.dcae.simpledemo.openecomp.org zldcbm01njcdap02
162.242.254.138 ecomp-nexus
root@zldcbm01njcdap01:~# ping zldcbm01njcdap02
PING zldcbm01njcdap02.dcae.simpledemo.openecomp.org (10.0.4.105) 56(84) bytes of data.
64 bytes from zldcbm01njcdap02.dcae.simpledemo.openecomp.org (10.0.4.105): icmp_seq=1 ttl=64 time=1.72 ms
^C
--- zldcbm01njcdap02.dcae.simpledemo.openecomp.org ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.729/1.729/1.729/0.000 ms
root@zldcbm01njcdap01:~#Also seen errors like following while installing cdap packages
## install-cdap-pkgs.sh
mkdir: `/cdap': Input/output error
mkdir: `/cdap/tx.snapshot': Input/output error
Configuring CDAP 3.5 apt-get repo...Any help would be appreciated.
- kranthi guttikonda
Vijay Venkatesh Kumar Can you please help me over here?
- Vijay Venkatesh Kumar
Sorry, not something I've encountered. I can reach out to development team (lr0306@att.com) for further assistance if needed.
Add your comment... - 10-1
@kranthi guttikonda, opening http://vm1-dcae-cdap02:9999/ worked out-of-the-box for me after my last restart of DCAE. Seems to be indeed your proxy creating issues.
Add your comment...
In /opt/app/dcae-cdap-small-hadoop/install.sh to install-steps/install-hortonworks-hadoop.sh
Failure seen for line in console log
# echo "Adding the HortonWorks public GPG key to apt..."
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 07513CAD
2017-06-28 20:24:49 (4.92 MB/s) - '/etc/apt/sources.list.d/hdp.list' saved [201/201]
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.6OZB1SNjAu --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 07513CAD
gpg: requesting key 07513CAD from hkp server keyserver.ubuntu.com
?: keyserver.ubuntu.com: Connection refused
gpgkeys: HTTP fetch error 7: couldn't connect: Connection refused
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
apt-get update...
now accessing cdap on 9999 port redirects to login page. Auto login doesn't work