Created on 09-05-2017 01:18 PM - edited 09-16-2022 05:11 AM
Slider client looks like its installed on the host but ambari does not recognize it. It says "0 Slider client installed". Also, i could not add as a service as it is already checked. When i try to start slider client through ambari, it says "Configuration parameter 'slider-env' was not found in configurations dictionary!". I can verify the slider version directly on the host without problem (attached output).
Ultimately I'm trying to enable HiveLLAP and due to this slider issue, Hive Interactive could not be enabled. Help please.
Thanks,
Prasanna.
Created 09-05-2017 01:31 PM
In order to avoid the following error:
"Configuration parameter 'slider-env' was not found in configurations dictionary!"
Can you please try the following steps to see if it fixes your issue?
1. Login to ambari server host using SSH.
2. Create a file somewhere on amabri server "/tmp/slider-env.txt" with the following content in it:
"properties" : { "content" : "\n# Set Slider-specific environment variables here.\n\n# The only required environment variable is JAVA_HOME. All others are\n# optional. When running a distributed configuration it is best to\n# set JAVA_HOME in this file, so that it is correctly defined on\n# remote nodes.\n\n# The java implementation to use. Required.\nexport JAVA_HOME={{java64_home}}\n# The hadoop conf directory. Optional as slider-client.xml can be edited to add properties.\nexport HADOOP_CONF_DIR={{hadoop_conf_dir}}" }
.
3. Now on the ambari server run the following command to put the "slider-env" config to ambari configurations.
# /var/lib/ambari-server/resources/scripts/configs.sh -port 8080 set localhost Sandbox slider-env /tmp/slider-env.txt
.
Please replace "localhost" with your ambari server hostname
ALso replace the "Sandbox" with your Ambari ClusterName
.
Created 09-05-2017 01:58 PM
Thanks @Jay SenSharma . Now i get the following error
Configuration parameter 'slider-log4j' was not found in configurations dictionary!
Created 09-05-2017 02:02 PM
Please try creating a file with some name like "/tmp/slider-log4j.txt" as following on amabri server:
"properties" : { "content" : "\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n# \"License\"); you may not use this file except in compliance\n# with the License. You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\n\n# Define some default values that can be overridden by system properties\nlog4j.rootLogger=INFO,stdout\nlog4j.threshhold=ALL\nlog4j.appender.stdout=org.apache.log4j.ConsoleAppender\nlog4j.appender.stdout.layout=org.apache.log4j.PatternLayout\n\n# log layout skips stack-trace creation operations by avoiding line numbers and method\nlog4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c{2} - %m%n\n\n# debug edition is much more expensive\n#log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c{2} (%F:%M(%L)) - %m%n\n\n\nlog4j.appender.subprocess=org.apache.log4j.ConsoleAppender\nlog4j.appender.subprocess.layout=org.apache.log4j.PatternLayout\nlog4j.appender.subprocess.layout.ConversionPattern=[%c{1}]: %m%n\n#log4j.logger.org.apache.slider.yarn.appmaster.SliderAppMasterer.master=INFO,subprocess\n\n# for debugging Slider\n#log4j.logger.org.apache.slider=DEBUG\n#log4j.logger.org.apache.slider=DEBUG\n\n# uncomment to debug service lifecycle issues\n#log4j.logger.org.apache.hadoop.yarn.service.launcher=DEBUG\n#log4j.logger.org.apache.hadoop.yarn.service=DEBUG\n\n# uncomment for YARN operations\n#log4j.logger.org.apache.hadoop.yarn.client=DEBUG\n\n# uncomment this to debug security problems\n#log4j.logger.org.apache.hadoop.security=DEBUG\n\n#crank back on some noise\nlog4j.logger.org.apache.hadoop.util.NativeCodeLoader=ERROR\nlog4j.logger.org.apache.hadoop.hdfs=WARN\n\n\nlog4j.logger.org.apache.hadoop.yarn.server.nodemanager.containermanager.monitor=WARN\nlog4j.logger.org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl=WARN\nlog4j.logger.org.apache.zookeeper=WARN" }
.
And then post the configuration as earlier something like following:
# /var/lib/ambari-server/resources/scripts/configs.sh -port 8080 set localhost Sandbox slider-log4j /tmp/slider-log4j.txt
.
Created on 09-05-2017 02:23 PM - edited 08-18-2019 02:57 AM
Thanks very much @Jay SenSharma , that helped. Ambari was able get past the errors and restart the slider-client. Interestingly, it still shows 0 slider client installed in the dashboard.
May i also please know where you get the properties file for each item that was used to register. THis will help me in case if i get hit with similar issue. Thanks again.
Created on 09-05-2017 02:32 PM - edited 08-18-2019 02:57 AM
I get the configs using the following command:
# /var/lib/ambari-server/resources/scripts/configs.sh -port 8080 get localhost Sandbox slider-log4j /tmp/slider-log4j.txt # /var/lib/ambari-server/resources/scripts/configs.sh -port 8080 get localhost Sandbox slider-env /tmp/slider-env.txt
.
Regarding your current issue of "0 Slider Clients" Please try this:
Login to ambari UI and then navigate to "hosts" tab --> Click any host and then on the host page you will find "Install Clients" Drop down.
.
And run the "
Slider "Run Service Check"
Created 09-05-2017 02:34 PM
You can also use the following kind of Ambari API call to install clients on a Cluster Node (host).
curl -u admin:admin -H "X-Requested-By: ambari" -X PUT -d '{"RequestInfo":{"context":"Install clients","operation_level":{"level":"HOST","cluster_name":"Sandbox","host_names":"sandbox.hortonworks.com"},"query":"HostRoles/component_name.in(HCAT)"},"Body":{"HostRoles":{"state":"INSTALLED"}}}' http://localhost:8080/api/v1/clusters/Sandbox/hosts/sandbox.hortonworks.com/host_components?
.
This will cause the "Slider" client also to be refreshed/installed on the host_name that you passed in the above command.
Created 09-05-2017 04:46 PM
@Jay SenSharma Run service check completed successfully, but it still show 0 client installed. I will try the curl command.
Thanks again.