Member since
07-04-2016
3
Posts
1
Kudos Received
0
Solutions
07-14-2016
01:06 AM
Hi @sujitha sanku, It's working. Thank you again for everything you have done! Thanks.
... View more
07-06-2016
03:42 AM
Hi @sujitha sanku, Thank you for the information. I use Hortonworks Sandbox HDP 2.4 and try the steps in "/var/lib/ambari-server/resources/stacks/HDP/2.4/services" The service status shows green. When I stop service, it will show red a while and turn green. It doesn't make sense. After I add check_process_status(my_test_pid) in status method, the service status show red. I have already refer to some information. For example: How to deploy Zeppelin(http://hortonworks.com/apache/zeppelin/#section_3) and Jupyter(https://github.com/randerzander/jupyter-service) on ambari But I still don't know why the check_process_status doesn't work. Thanks.
... View more
07-04-2016
07:10 AM
1 Kudo
I refer to
Defining a Custom Stack and Services. (https://cwiki.apache.org/confluence/display/AMBARI/Defining+a+Custom+Stack+and+Services)
My custom service directory structure is as follows: SAMPLESRV/
├── configuration
│ └── test-config.xml
├── metainfo.xml
└── package
├── archive.zip
└── scripts
├── master.py
├── sample_client.py
└── slave.py
When I add check_process_status method in master.py and restart ambari server, the service status will show red icon.
But the service is running. add-check-process-status.png add-check-process-status2.png def status(self, env):
print 'Status of the Sample Srv Master';
my_test_pid = "/var/run/mytest/mytest_server.pid"
check_process_status(my_test_pid)
When I comment check_process_status method in master.py and restart ambari server, the service status will show green icon. Do I miss something? About my source code of custom service , please refer to attachment file my-custom-service.tar.gz Thanks.
... View more
Labels: