how to enable warning span without click

2018-03-11 Thread xiang . dai
Hi ! As the pic shows, the waring span can show without click, but i add a customized service with config, the waring span can not show. Here is my config xml: content Lvm Disk Config content true true true false true How can i do this? It seems that i miss so

server restart but agent can not achieve new stacks

2018-03-15 Thread xiang . dai
Hi! I add a custom stack then restart ambari-server, and agent register successfully. But when i want to install a service in this stack, it shows that related scripts do not exist in /var/lib/cache/ambari-agent. I do not know why it occur. And i have tried reinstall server and agent but

how to define stacks like 2.6.5.0

2018-03-19 Thread xiang . dai
Hi! I has defined a new stack like 3.0.0 and there is a dir called 3.0.0, but i find that HDP has 2.6.5.0 but only has 2.6 dir. How can i also defined a new stack like 3.1.1 in this way?

Re: how to define stacks like 2.6.5.0

2018-03-20 Thread xiang . dai
> HDP 2.6.x releases share the same stack definitions from the HDP-2.6 directory Could you share more details about it? How can i add 2.6.x in XXX-2.6 dir? - Original Message - From: "Di Li" To: dev@ambari.apache.org Sent: Tuesday, March 20, 2018 9:03:51 PM Subject: Re: how to define sta

Questions aboute install order

2018-03-21 Thread xiang . dai
Hi! I know that when choose services, i can define service dependence in service's metainfo.xml, at the same time, i can define order in role_command_order.json. I have some questions: 1) why the dependence in metainfo can not auto covert into role_command_order which i think it is very c

Re: Questions aboute install order

2018-03-21 Thread xiang . dai
So do you mean that the install order does not like my thought? - Original Message - From: "Di Li" To: dev@ambari.apache.org Sent: Wednesday, March 21, 2018 8:45:06 PM Subject: Re: Questions aboute install order metainfo only list direct dependencies. RCO only dictates what a dependent s

why stack_root does not exist

2018-03-21 Thread xiang . dai
HI! I define a new stack called DX and change 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. [Errn

No module named ambari_simplejson

2018-03-22 Thread xiang . dai
Hi! I do some changes and rebuild a ambari-agent rpm pkg, but start failed. Here is the log: + nohup /usr/bin/python /usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.py start Killed [root@dx-storage-1 etc]# /usr/bin/python /usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.

Re: No module named ambari_simplejson

2018-03-22 Thread xiang . dai
Oops, after reboot, it works. - Original Message - From: "Robert Levas" To: dev@ambari.apache.org Sent: Thursday, March 22, 2018 7:35:49 PM Subject: Re: No module named ambari_simplejson Check to see if /usr/lib/ambari-agent/lib is in your PYTHONPATH. On 3/22/18, 7:17 AM, "xiang@

could retry install do uninstall first

2018-03-22 Thread xiang . dai
Hi! I add some service and want to use amabri to install and manage them, but i have some question about retry install. Does retry install do uninstall first and then install? If not, i think failed install would make next install failed. Also, uninstall manually is not cool.

Re: could retry install do uninstall first

2018-03-22 Thread xiang . dai
So when and who call the uninstall function in the service script? - Original Message - From: "Di Li" To: dev@ambari.apache.org Sent: Thursday, March 22, 2018 9:17:32 PM Subject: Re: could retry install do uninstall first First of all, Ambari's "Delete" is more of "unregistering" a compo

Re: why stack_root does not exist

2018-03-22 Thread xiang . dai
But i find some python script use "/usr/hdp" as hard code, is there a plan to make it synchronize with stack_root val? - Original Message - From: "Di Li" To: dev@ambari.apache.org Sent: Thursday, March 22, 2018 9:19:33 PM Subject: Re: why stack_root does not exist It doesn't create that

how to exec shell script and output its log

2018-03-23 Thread xiang . dai
Hi! I have some shell scripts and want to call them in service python scripts. I saw an example which use Execute to 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

install services hang at the step9 since Operating System matching redhat7 could not be found

2018-03-27 Thread xiang . dai
Hi! I add a custom service and install it with amabri ui, but it hang at the step9. I check the log find below warning: 28 Mar 2018 05:58:22,229 WARN [ambari-action-scheduler] ActionScheduler:316 - Exception received java.lang.RuntimeException: org.apache.ambari.server.controller.spi.Syste

where to hide install info

2018-03-28 Thread xiang . dai
Hi! Every time i install a service, below info show: 2018-03-28 08:13:53,455 - Group['hadoop'] {} 2018-03-28 08:13:53,456 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['users'], 'uid': None} 2018-03-28 08:13:53,457 - File['/var/lib/ambari-agent/tmp/changeUid.s

BUG? :ui can not show warning span without click when add service

2018-03-28 Thread xiang . dai
Hi! I have asked similar question about span when install service, and remove read-only can work. But when i add a service, the warning span can not auto show, only show after i click. My config is as below: test1 1 content true true false true test2 2 con

Could custom client service add start/stop?

2018-03-29 Thread xiang . dai
Hi! I follow https://cwiki.apache.org/confluence/display/AMBARI/Defining+a+Custom+Service and add a custom client service. I want add start/stop as customCommand, but i do not know how and when to call them. Also, is there any possible to start/stop client service at web UI like master se

custom master service can not stop

2018-03-29 Thread xiang . dai
Hi! I add a master service as below: 2.0 YUM YUM Yum Service 1.0.0 YUM_MASTER Yum Master MASTER 1 scripts/master.py PYTHON 600 YUM_SLAVE Yum Slave SLAVE 1+ scripts/slave.py PYTHON 600 any master.py: class Master(Script): def install(

Re: custom master service can not stop

2018-03-29 Thread xiang . dai
Yum Test Yum Test Yum Test Yum 2018-03-29 20:15:35,835 - Waiting for actual component stop - Original Message - From: "xiang dai" To: dev@ambari.apache.org Sent: Thursday, March 29, 2018 8:14:47 PM Subject: custom master service can not stop Hi! I add a master service as be

iframe refresh failed in ambari web

2018-04-10 Thread xiang . dai
I add a custom view to show something with iframe like below: js: var App = require('app'); App.CustomView = Em.View.extend({ tagName: "iframe", classNames: ["views_sizes"], attributeBindings: ['src','height','seamless','allowfullscreen'], seamless: "seamless", height: "500px", allowful

how to define status() for service

2018-04-10 Thread xiang . dai
Hi! I am testing a simple script like below: def install(self, env): print 'install' def start(self, env): print 'start' def stop(self, env): print 'stop' def status(self, env): print 'status' It can install and start, but it can not stop as expected and print "wait actual stop". I

Re: how to define status() for service

2018-04-10 Thread xiang . dai
Just raise ComponentIsNotRunning() to report service not running, Thanks. - Original Message - From: "xiang dai" To: dev@ambari.apache.org Sent: Wednesday, April 11, 2018 10:28:32 AM Subject: how to define status() for service Hi! I am testing a simple script like bel

question about service both has master and client

2018-04-12 Thread xiang . dai
Hi! I define a custom service which include master and client. In master script, it has install/status/configuare/start/stop function. In client script, it only has *install* function. For A node, i install master, and for B node, i install client. I install and stop as expected, but when

Re: question about service both has master and client

2018-04-13 Thread xiang . dai
By the way, i found that if install master and client on same node, the client would at "STARTED" status, and can not exec "restart all" successfully. - Original Message - From: "Di Li" To: dev@ambari.apache.org Sent: Saturday, April 14, 2018 4:04:10 AM Subject: Re: question about servic

how can i build ambari-metrics-monitor rpm

2018-04-17 Thread xiang . dai
Hi! I succeed in build ambari server and agent with docs help, when i install ambari-metrics, i find that it needs many pkgs, such as ambari-metrics-monitor, ambari-metrics-common, ambari-metrics-collector. The ambari-metrics-common and ambari-metrics-collector i can find in the build dir,

how to make service checked or not when install

2018-04-17 Thread xiang . dai
Hi! I find something amazing that LOGSEARCH is not checked as default when install, but i do not find where it define. Could someone tell me some detail? Best wishes

java OOM when install services but show success

2018-04-18 Thread xiang . dai
I add 30+ services in HDP stack, and install all of them, when i click next from step8 to step9, server error and return 500, then it shows success and click next can enter into dashboard. I found below info in log: Caused by: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.c

Re: how can i build ambari-metrics-monitor rpm

2018-04-19 Thread xiang . dai
Thank you very much. Best Wishes - Original Message - From: "Aravindan Vijayan" To: dev@ambari.apache.org Sent: Thursday, April 19, 2018 12:33:51 PM Subject: Re: how can i build ambari-metrics-monitor rpm Hi Xiang, Ambari Metrics RPM build instructions - https://cwiki.apache.org/confl

Re: java OOM when install services but show success

2018-04-19 Thread xiang . dai
The root reason is that i make install order in a loop. But when ambari service return 500, That ambari shows success and can enter into dashboard is so bad. If possible, can mark this as a issue on the JIRA and fix it? - Original Message - From: "xiang dai" To: dev@ambari.

where can view zookeeper detail

2018-05-02 Thread xiang . dai
I found that zookeeper pkgs have updated after ambari 2.6.2 released. What is new about zookeeper pkgs? Where can i get detail about it? One difference i notice is that it install at /usr/hdp not /usr/bin. /usr/hdp in the stack_root defined, if i redefine stack_root, the installation would f

Re: where can view zookeeper detail

2018-05-02 Thread xiang . dai
Thanks very much, but i am still confuse about rpms(zookeeper, zookeepr_{stack_version}, zookeeper_{stack_version}_server). I download zookeeper source code but i do not know how to build above three rpms. Which part or code generate above three rpms? - Original Message - From: "Di Li"

How to integrate metrics in my own stack

2018-05-03 Thread xiang . dai
Hi! I have defined a new stack and want to use ambari metrics to monitor. The installed pkgs are same, but i can not start them as expected. I changed hook and cluster-env.xml including stack_root and so on, could someone give some tips about this? Thanks Xiang

support multi-server node

2018-05-12 Thread xiang . dai
Hi,all! Is there any plan to support multi-server node? When one server down, change to another server, the ambari UI still can work, which i think so cool. Thanks

why status can not use config['configurations']

2018-06-25 Thread xiang . dai
Hi! config = Script.get_config() Then I want to use config['configurations']['ntpd']['deploy'] in status function, but it says: Fail: Configuration parameter 'ntpd' was not found in configurations dictionary! I also use config['configurations']['ntpd']['deploy'] in start and stop function

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

2018-06-26 Thread xiang . dai
Sure, it is a workaround which i have used. In my thought, use config['configurations'] directly could be cool, right? - Original Message - From: "Steve Varnau" To: dev@ambari.apache.org Sent: Tuesday, June 26, 2018 11:45:22 PM Subject: RE: why status can not use config['configurations']