Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2831 | 04-27-2020 03:48 AM | |
| 5503 | 04-26-2020 06:18 PM | |
| 4682 | 04-26-2020 06:05 PM | |
| 3712 | 04-13-2020 08:53 PM | |
| 5622 | 03-31-2020 02:10 AM |
07-01-2019
09:07 AM
@Pritam Konar I do not see the error any more in the SmartSense startup log. Seems that the previous remedy worked in getting it fixed shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory It will be great if you can mark the current HCC thread as Answered by clicking the "Accept" button on the helpful answer and that way we can keep one HCC thread dedicate to One particular issue and one particular resolution. . . Your current error is completely different and will require separate investigation. I will suggest you to please open a separate HCC thread with " /var/log/smartsense-activity/activity-analyzer.log" log attached for the review of the following error that you are getting now. Waiting for activity analyzer to start...................
SmartSense Activity Analyzer failed to start, with exitcode -1. Check /var/log/smartsense-activity/activity-analyzer.log for more information.
User root failed to execute command : /usr/sbin/hst activity-analyzer start
... View more
07-01-2019
06:44 AM
@Michael Bronson Kafka and Zookeepers are two services that are sensitive to disk I/O. Keeping them on same node will not be a good idea. The most performance-critical part of ZooKeeper is the transaction log. ZooKeeper must sync transactions to media before it returns a response. A dedicated transaction log device is key to consistent good performance. Putting the log on a busy device will adversely impact performance. The ZooKeeper transaction log must be configured in a dedicated device. This is very important to achieve best performance from ZooKeeper. ZooKeeper's transaction log must be on a dedicated device. ZooKeeper writes the log sequentially, without seeking. Sharing your log device with other processes can cause seeks and contention, which in turn can cause multi-second delays. ZooKeeper in a situation that can cause a swap. In order for ZooKeeper to function with any sort of timeliness, it simply cannot be allowed to swap. Remember, in ZooKeeper, everything is ordered, so if one request hits the disk, all other queued requests hit the disk. Some good discussions can be found on the following HCC threads / articles on this: 1. https://community.hortonworks.com/questions/55868/zookeeper-on-even-master-nodes.html 2. https://community.hortonworks.com/questions/2498/best-practices-for-zookeeper-placement.html 3. https://community.hortonworks.com/articles/62667/zookeeper-sizing-and-placement-draft.html
... View more
07-01-2019
06:11 AM
@Michael Bronson As per standard recommendation/ best practice: https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_kafka-component-guide/content/kafka-zookeeper-multiple-apps.html Then for example: 1). Do not run ZooKeeper on a server where Kafka is running. If Kafka Brokers are installed on node1, node2, node3 then you should have Zookeepers on other cluster nodes where Kafka is not installed like node4, node5, node6. 2). When using ZooKeeper with Kafka you should dedicate ZooKeeper to Kafka, and not use ZooKeeper for any other components. Means the Zookeepers running on that node node4, node5, node6 should be used only for Kafka. Which means the Zookeeper running on those nodes (node4, node5, node6) should be dedicated to kafka means should not be used for other purpose like HBase/ NameNode Failovers /AMS ...etc
... View more
06-30-2019
01:38 PM
@Pritam Konar As we see the following error: Traceback (most recent call last):
File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 62, in _ensure_metadata
_group_entity = grp.getgrnam(group)
KeyError: 'getgrnam(): name not found: shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory\nroot'
The above exception was the cause of the following exception:
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/SMARTSENSE/package/scripts/activity_analyzer.py", line 13, in <module>
Activity('analyzer').execute() So can you please try this and then see if it works for you? Edit the AGENT_WORKING_DIR property value inside the "/var/lib/ambari-agent/bin/ambari-agent" to something else and then try again. The default location will be something like following on all hosts. Default setting # grep 'AGENT_WORKING_DIR' /var/lib/ambari-agent/bin/ambari-agent
AGENT_WORKING_DIR=/var/lib/ambari-agent For example try changing it to something like "/tmp/ambari-agent " as following: Example After change # grep 'AGENT_WORKING_DIR' /var/lib/ambari-agent/bin/ambari-agent
AGENT_WORKING_DIR=/tmp/ambari-agent Then restart Ambari Agent on all hosts. # ambari-agent restart
... View more
06-28-2019
07:20 AM
@Michael Bronson Zookeeper memory related settings can be specified inside the zookeeper-env script (via ambari zookeeper-env template) # grep 'SERVER_JVMFLAGS' /etc/zookeeper/3.1.0.0-78/0/zookeeper-env.sh
export SERVER_JVMFLAGS=-Xmx4096m .
... View more
06-28-2019
07:16 AM
@Michael Bronson The meaning of "you should dedicate ZooKeeper to Kafka," and "Do not run ZooKeeper on a server where Kafka is running." statements are combined. Zookeeper Servers should not be installed/run on Kafka Broker host. Kafka should have zookeepers dedicated to it means the Zookeepers which are going to be by Kafka should not be used for other services. Like Kafka Zookeepers should not be used by HBase/ NameNode Failovers /AMS ...etc
... View more
06-28-2019
05:58 AM
1 Kudo
@Naveen Varma Ramesh Can you please make sure that the "amb_ranger_admin" and ranger "admin" password are same. Please refer to the following links to see how to reset if needed. Please check the following UI paths: Ranger UI Ranger UI --> Settings --> Users/Groups Then Search for 'admin' and 'amb_ranger_admin' users. Ambari UI Ambari UI --> Ranger --> Configs --> Admin Settings --> "Ranger Admin user's password for Ambari" Do you have the same password values that you used in Ranger UI ? For additional info please refer to : https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.1.0/authorization-ranger/content/ranger_install_updating_ranger_admin_passwords.html https://community.hortonworks.com/articles/186614/how-to-change-amb-ranger-admin-password.html . .
... View more
06-28-2019
04:40 AM
1 Kudo
@Michael Bronson I will try to partially answer your queries: 1. how to know the kafka version of each HDP version? The "Release Notes" section of the Individual HDP doc contains the "Component Version" information that it ships and supports. Example: https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.1.0/release-notes/content/comp_versions.html https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.5/bk_release-notes/content/comp_versions.html .
... View more
06-28-2019
04:36 AM
@Michael Bronson Do not run ZooKeeper on a server where Kafka is running. The statement is taken from the following doc: https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_kafka-component-guide/content/kafka-zookeeper-multiple-apps.html
... View more
06-28-2019
02:51 AM
1 Kudo
@Michael Bronson There is a similar HCC thread where you can find the answer on how to obtain the Zookeeper RPM for HDP 2.6.4 and then you can later install them using RPM install commands manually on your desired hosts. Other HCC thread: https://community.hortonworks.com/questions/248482/how-to-download-the-zookeeper-server-pkgs-by-wget.html Please refer to the following link which provides the HDP 2.6.4 offline repos. https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.1.5/bk_ambari-installation/content/hdp_26_repositories.html From that link based on your OS type you can download the "HDP-2.6.4.0-XXXXX-rpm.tar.gz" files and then after extracting that file you should eb able to find the Zookeeper RPM as well. Example for CentOs7 (RHEL7) RPMs for HDP2.6.4 http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0/HDP-2.6.4.0-centos7-rpm.tar.gz
... View more