Member since
08-27-2018
13
Posts
1
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
183 | 03-21-2017 07:24 AM |
08-27-2018
10:46 PM
We have an issue with handling colon symbol in operation names. Probably other names as well. http://quickstart.cloudera:7187/api/v9/entities?query=(sourceType:PIG)AND(type:operation)AND(originalName:PigLatin:script.pig) - shows nothing Encoded URL shows nothing as well: http://quickstart.cloudera:7187/api/v9/entities?query=(sourceType:PIG)AND(type:operation)AND(originalName:PigLatin%3Ascript.pig) Pig Operation names PigLatin:script.pig exists and can be viewed using an url for all the PIG jobs: http://quickstart.cloudera:7187/api/v9/entities?query=(sourceType:PIG)AND(type:operation)AND(originalName:*) Any suggestions how to overcome this?
... View more
Labels:
03-19-2018
02:02 PM
is there some JAR library containing required file? We have to use Maven for our application but can't find the WasbAzureIaasSink class
... View more
03-21-2017
07:24 AM
To disable you should use the following: <configuration supports_adding_forbidden="true">
... View more
03-20-2017
02:59 PM
By default if Ambari service uses configuration file called service-config.xml there will be two entries in Ambari UI called Advances service-config and Custom service-config (attached example for Solr to illustrate that). I want to remove Custom ... section at all and use my own name for Advanced ... section (Not 'Advanced service-config' but 'Configuration for MyService'). Is that possible?
... View more
Labels:
03-20-2017
02:44 PM
I'm implementing a custom service that is configured via Ambari UI and I want to add property to specify Authentication tyupe that could be either LDAP or KERBEROS. In my service-config.xml I have the following lines:
<property>
<name>serviceAuthType</name>
<value>KERBEROS</value>
<value-attributes>
<type>attribute-list</type>
<entries>
<entry>
<value>KERBEROS</value>
<label>KERBEROS</label>
</entry>
<entry>
<value>LDAP</value>
<label>LDAP</label>
</entry>
</entries>
<selection-cardinality>1</selection-cardinality>
</value-attributes>
but I still having it displayed as normal input not combo box or radio button. I want to see somethinh like Hive has for metastore database selection.
Is it possible to achieve that?
... View more
Labels:
01-26-2017
06:12 PM
Nope, it is already started. But if cluster restarts (e.g. power outage) my service is down and needs to be started manualy
... View more
01-26-2017
02:58 PM
I'm implementing the Ambari service and need to have it started aotumatically after cluster was started. Is there some option in metainfo.xml to enable this?
... View more
Labels:
01-20-2017
06:54 AM
import sys
import time
import os.path
from resource_management import *
class Master(Script):
def install(self, env):
import params;
env.set_params(params);
print 'Install application';
Execute('/var/lib/ambari-server/resources/stacks/HDP/2.5/services/CATALOGER/application.sh start');
def configure(self, env):
import params;
env.set_params(params);
print 'Configure application';
def stop(self, env):
import params;
env.set_params(params);
print 'Stop application';
Execute('/var/lib/ambari-server/resources/stacks/HDP/2.5/services/CATALOGER/application.sh stop');
def start(self, env):
import params;
env.set_params(params);
print 'Start application';
Execute('/var/lib/ambari-server/resources/stacks/HDP/2.5/services/CATALOGER/application.sh start');
def status(self, env):
#What should be here??
if __name__ == "__main__":
Master().execute()
... View more
01-18-2017
10:40 AM
I've implemented dummy service like described here but it works fine for start and stop commands only. But when I'm restarting the service it causes the following exception: Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/CATALOGER/package/scripts/application.py", line 28, in <module>
Master().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
method(env)
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 709, in restart
self.status(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/CATALOGER/package/scripts/application.py", line 25, in status
Execute ( format("cat {pid_file}") );
File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, in __init__
self.env.run()
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
self.run_action(resource, action)
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
provider_action()
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 273, in action_run
tries=self.resource.tries, try_sleep=self.resource.try_sleep)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 71, in inner
result = function(command, **kwargs)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 93, in checked_call
tries=tries, try_sleep=try_sleep)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 141, in _call_wrapper
result = _call(command, **kwargs_copy)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 294, in _call
raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of 'cat /opt/app/application.pid' returned 1. cat: /opt/app/application.pid: No such file or directory
Ok. File really does not exist (because was deleted during service stop). So I' adding lines like this: def status(self, env):
pid_file = "/opt/app/application.pid";
if (os.path.exists(pid_file)):
Execute ( format("cat {pid_file}") );
and now it checks file existence but still fails with this message: Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/CATALOGER/package/scripts/application.py", line 30, in <module>
Master().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
method(env)
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 710, in restart
raise Fail("Stop command finished but process keep running.")
resource_management.core.exceptions.Fail: Stop command finished but process keep running. Can anyone suggest how to manage service restart properly?
... View more
Labels:
01-18-2017
10:25 AM
Hello. I did the similar stuff and it works fine when starting\stopping service. But for restart it fails. Looks like it runs status check after stop and status check fails because pid file is already deleted: Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/CATALOGER/package/scripts/application.py", line 28, in <module>
Master().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
method(env)
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 709, in restart
self.status(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/CATALOGER/package/scripts/application.py", line 25, in status
Execute ( format("cat {pid_file}") );
File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, in __init__
self.env.run()
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
self.run_action(resource, action)
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
provider_action()
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 273, in action_run
tries=self.resource.tries, try_sleep=self.resource.try_sleep)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 71, in inner
result = function(command, **kwargs)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 93, in checked_call
tries=tries, try_sleep=try_sleep)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 141, in _call_wrapper
result = _call(command, **kwargs_copy)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 294, in _call
raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of 'cat /opt/app/application.pid' returned 1. cat: /opt/app/application.pid: No such file or directory
... View more
11-01-2016
07:51 AM
[root@sandbox ~]# ls -lrt /var/run/ambari-server/stack-recommendations/
total 24
drwxrwxrwx 1 root root 4096 Sep 14 06:43 2
drwxrwxrwx 1 root root 4096 Sep 14 06:43 3
drwxrwxrwx 1 root root 4096 Sep 14 06:43 4
drwxrwxrwx 1 root root 4096 Sep 14 06:44 5
drwxrwxrwx 1 root root 4096 Oct 31 09:49 6
drwxrwxrwx 1 root root 4096 Oct 31 09:50 1 Tried to delete:
[root@sandbox ~]# rm -rf /var/run/ambari-server/stack-recommendations/*
rm: cannot remove `/var/run/ambari-server/stack-recommendations/1': Invalid argument
rm: cannot remove `/var/run/ambari-server/stack-recommendations/2': Invalid argument
rm: cannot remove `/var/run/ambari-server/stack-recommendations/3': Invalid argument
rm: cannot remove `/var/run/ambari-server/stack-recommendations/4': Invalid argument
rm: cannot remove `/var/run/ambari-server/stack-recommendations/5': Invalid argument
rm: cannot remove `/var/run/ambari-server/stack-recommendations/6': Invalid argument Tried change owner: [root@sandbox ~]# cat /etc/ambari-server/conf/ambari.properties | grep ambari-server.user
ambari-server.user=root
[root@sandbox ~]# chown -R root /var/run/ambari-server/stack-recommendations/
Still no effect.
Downloading new sandbox now
... View more
10-31-2016
10:39 AM
1 Kudo
Just downloaded HDP 2.5 Sandbox and tried to install one of existing but not installed services (NiFi) from Ambari UI.
This leads to the following error:
I've found similar issues mentioned here: https://community.hortonworks.com/questions/50950/ambari-server-wizard-assign-masters-menu-error-occ.html But when I'm trying to change the owner of that directory or even delete and re-create its content (acting as a root) I'm getting the following error: rm: cannot remove `1': Invalid argument
... View more