----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/40298/#review106452 -----------------------------------------------------------
Ship it! Ship It! - Andrew Onischuk On Nov. 13, 2015, 4:20 p.m., Dmitro Lisnichenko wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/40298/ > ----------------------------------------------------------- > > (Updated Nov. 13, 2015, 4:20 p.m.) > > > Review request for Ambari, Andrew Onischuk and Sumit Mohanty. > > > Bugs: AMBARI-13887 > https://issues.apache.org/jira/browse/AMBARI-13887 > > > Repository: ambari > > > Description > ------- > > Try to install Smart Sense when trying to deploy HDP 2.3 and the server and > agent install fails > > Caught an exception while executing custom service command: <class > 'ambari_agent.AgentException.AgentException'>: 'Script > /var/lib/ambari-agent/cache/stacks/HDP/2.1/services/SMARTSENSE/package/scripts/hst_agent.py > does not exist'; 'Script > /var/lib/ambari-agent/cache/stacks/HDP/2.1/services/SMARTSENSE/package/scripts/hst_agent.py > does not exist' > > Caught an exception while executing custom service command: <class > 'ambari_agent.AgentException.AgentException'>: 'Script > /var/lib/ambari-agent/cache/stacks/HDP/2.1/services/SMARTSENSE/package/scripts/hst_server.py > does not exist'; 'Script > /var/lib/ambari-agent/cache/stacks/HDP/2.1/services/SMARTSENSE/package/scripts/hst_server.py > does not exist' > > server is running under user slava: > slava 23129 3.3 4.2 4768512 686808 ? Sl 02:28 25:37 > /usr/jdk64/jdk1.8.0_45/bin/java -server -XX:NewRatio=3 > -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit > -XX:CMSInitiatingOccupancyFraction=60 -Dsun.zip.disableMemoryMapping=true > -Xms512m -Xmx2048m > -Djava.security.auth.login.config=/etc/ambari-server/conf/krb5JAASLogin.conf > -Djava.security.krb5.conf=/etc/krb5.conf > -Djavax.security.auth.useSubjectCredsOnly=false -Xms512m -Xmx2048m > -Djava.security.auth.login.config=/etc/ambari-server/conf/krb5JAASLogin.conf > -Djava.security.krb5.conf=/etc/krb5.conf > -Djavax.security.auth.useSubjectCredsOnly=false -cp > /etc/ambari-server/conf:/usr/lib/ambari-server/*:/usr/share/java/mysql-connector-java.jar > org.apache.ambari.server.controller.AmbariServer > > Files generated by ambari-server script have wrong permissions: > [root@os-r6-stest-5 tmp]# ll > /var/lib/ambari-server/resources/stacks/HDP/2.1/services/SMARTSENSE/package/ > total 840 > -rw-r-----. 1 root root 0 2015-11-13 02:27 abc.txt > -rw-r-----. 1 root root 850974 2015-11-12 22:26 archive.zip > drwxr-xr-x. 4 slava root 4096 2015-11-12 22:25 files > drwxr-xr-x. 2 slava root 4096 2015-11-12 22:25 scripts > > [root@os-r6-stest-5 tmp]# umask > 0027 > And that's why file can not be read by server process. > > > Diffs > ----- > > ambari-server/src/main/python/ambari_server/resourceFilesKeeper.py fe80723 > > Diff: https://reviews.apache.org/r/40298/diff/ > > > Testing > ------- > > mvn clean test > > > Thanks, > > Dmitro Lisnichenko > >