Re: why status can not use config['configurations']

2018-06-25 Thread Dai Xiang
on parameter 'ntpd' was not found in configurations > > dictionary! > > > > I also use config['configurations']['ntpd']['deploy'] in start and stop > > function, both ok. > > > > And i try to print config in status funtion, it only prints > > agentConfigParams. > > > > So how can i use config['configurations']['ntpd']['deploy']? > > > > Thanks. > > > > > > > > -- Best Regards Dai Xiang

Re: how to exec shell script and output its log

2018-03-25 Thread Dai Xiang
call shell script like > > Execute("/path/do_something"). > > > > But i notice that if the log level is INFO, the shekllscript own log can > > not be printed, only change log > > level to DEBUG can show log. > > > > Is there a better way to call shell script and print its log? > > -- Best Regards Dai Xiang

Re: why stack_root does not exist

2018-03-25 Thread Dai Xiang
hange the stack_root to {DX: /usr/dx} > >> in the cluster_env.xml, the old is {HDP: /usr/hdp}. > >> > >> But when i start install, i find below error: > >> > >> WARNING 2018-03-22 10:05:49,709 base_alert.py:138 - > >> [Alert][ambari_agent_disk_usage] Unable to execute alert. [Errno 2] No > >> such file or directory: '/usr/dx' > >> > >> Does it mean ambari can not auto mkdir this one? > >> > >> If i miss something important, please tell me. > >> > >> Best Wishes > >> > > > -- Best Regards Dai Xiang

Re: how to enable warning span without click

2018-03-15 Thread Dai Xiang
> > > > content > > true > > true > > true > > false > > true > > > > > > > > > > > > > > How can i do this? It seems that i miss something important. > > > > Could someone help me? > > -- Best Regards Dai Xiang

How to specify ambari server to do custom command

2018-01-31 Thread Dai Xiang
Hi! I add a custom command and want it run at ambari server host. Is it possible? How can i do it? -- Best Regards Dai Xiang

How to test ambari-server change?

2018-01-30 Thread Dai Xiang
Hi! I am new to ambari and I find that web-fronted changes can be tested easily according to official docs. Now i want to do some change about ambari-server, my test way is to build RPMS then do test. But it need too much build time, is there a easier way to develop it? -- Best Regards Dai

Question about ip and hostname

2018-01-22 Thread Dai Xiang
that using hostname can make UI better, is it the only reason? Could anyone tell me detail about it? -- Best Regards Dai Xiang

java rpm url is too old in dockerfile

2018-01-14 Thread Dai Xiang
Hi! >From brunch "trunk": https://github.com/apache/ambari/blob/trunk/dev-support/docker/docker/Dockerfile Java rpm url is too old, is it possible to update it? I think keep those urls available is cool. -- Best Regards Dai Xiang

register ok in log but web fail

2018-01-12 Thread Dai Xiang
ng config property (java.home) with value (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-5.b12.el7_4.x86_64/jre) INFO 2018-01-12 09:36:14,577 AmbariConfig.py:316 - Updating config property (agent.check.mounts.timeout) with value (0) WARNING 2018-01-12 09:36:14,577 AlertSchedulerHandler.py:123 - There are no alert definition commands in the heartbeat; unable to update definitions INFO 2018-01-12 09:36:14,577 Controller.py:516 - Registration response from 172.17.0.2 was OK <=== INFO 2018-01-12 09:36:14,577 Controller.py:521 - Resetting ActionQueue... INFO 2018-01-12 09:36:24,579 Controller.py:304 - Heartbeat (response id = 0) with server is running... INFO 2018-01-12 09:36:24,580 Controller.py:311 - Building heartbeat message INFO 2018-01-12 09:36:24,585 Heartbeat.py:90 - Adding host info/state to heartbeat message. INFO 2018-01-12 09:36:24,684 logger.py:75 - Testing the JVM's JCE policy to see it if supports an unlimited key length. INFO 2018-01-12 09:36:24,799 Hardware.py:176 - Some mount points were ignored: /, /dev, /sys/fs/cgroup, /etc/hosts, /dev/shm, /run, /run/user/0 INFO 2018-01-12 09:36:24,800 Controller.py:320 - Sending Heartbeat (id = 0) INFO 2018-01-12 09:36:24,802 Controller.py:333 - Heartbeat response received (id = 1) INFO 2018-01-12 09:36:24,802 Controller.py:342 - Heartbeat interval is 10 seconds INFO 2018-01-12 09:36:24,803 Controller.py:380 - Updating configurations from heartbeat INFO 2018-01-12 09:36:24,803 Controller.py:389 - Adding cancel/execution commands INFO 2018-01-12 09:36:24,803 Controller.py:406 - Adding recovery commands INFO 2018-01-12 09:36:24,803 Controller.py:475 - Waiting 9.9 for next heartbeat INFO 2018-01-12 09:36:34,703 Controller.py:482 - Wait for next heartbeat over So does it means that i get a bug or i miss something? -- Best Regards Dai Xiang

How to test web install flow

2018-01-09 Thread Dai Xiang
Hi! I have read related docs and `brunch w -s` is a great cmd to do web related test. But i am confused about that it can not test install flow. Is there a good way to test it? -- Best Regards Dai Xiang

How to read web api-docs and start to develop web

2018-01-09 Thread Dai Xiang
. -- Best Regards Dai Xiang