Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2438 | 04-27-2020 03:48 AM | |
4867 | 04-26-2020 06:18 PM | |
3972 | 04-26-2020 06:05 PM | |
3211 | 04-13-2020 08:53 PM | |
4906 | 03-31-2020 02:10 AM |
02-09-2017
08:07 AM
@Veronica Angel
For Windows the Klist command syntax is slightly different: https://technet.microsoft.com/en-us/library/hh134826(v=ws.11).aspx
... View more
02-09-2017
07:48 AM
@Veronica Angel "Keytab contains no suitable keys" error message, usually indicates that either the keytab had no keys in it the mentioned Principal with a supported encryption type. We can find that out by running the following command and matching the encryption+principal. klist –kte /PATH/TO/keytab .
- Also couple of things we need to double check like the JCE unlimited policy is installed. - Realm name is all in UpperCase. . If nothing works then at last we might have to regenerate the keytabs.
... View more
02-09-2017
04:19 AM
2 Kudos
@Christopher Huynh Looks like you have not defined the "Port" for the "kibana_es_url" inside your "kibana-env" That seems to be causing this issue. Please define the "kibana_es_url" in "scheme://host:port" format. (here scheme means http or https) Example: https://something.example.com:securePort
OR
http://something.example.com:port .
... View more
02-09-2017
02:56 AM
4 Kudos
@Sreeviswa Athikala You will have to use ambari APIs in order to move a component from one host to another host. Because "Move" option is not available for all the host components in th ambari UI. So please refer to the following link as an example: [1] https://cwiki.apache.org/confluence/display/AMBARI/Moving+Metrics+Collector+to+a+new+host [2] https://community.hortonworks.com/content/supportkb/48958/how-to-move-a-host-component-from-one-host-to-anot.html - Other approach will be to click on the "Move" button in the host page in the UI. But this option is not available for all the components.
... View more
02-08-2017
08:15 AM
@Predrag Minovic Did you try the following option: ambari-server encrypt-passwords . Optional: Encrypt Database and LDAP Passwords : http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-security/content/optional_encrypt_database_and_ldap_passwords.html
... View more
02-07-2017
03:28 PM
1 Kudo
@Kargol Meister Ambari internally uses "Jetty" server where we have "acceptors" and "selector" threads just like any other servers.
From Jetty9 the formula for calculating the "acceptors" and "selector" threads are much more enhanced and changed. Some informations regarding "acceptors" and "selector": Acceptor threads accepts new connections from client. They run a loop on a blocking accept() call to accept connections. With a box with 80 cores, which is not typical, you are recommended to manually configure the number of acceptors and selectors, since the guesses we make are probably off. The right number of acceptor threads is determined by the server load and the traffic shape, in particular by connection open/close rate. We can higher this rate, the more acceptors you want. Selector threads manage events on connected sockets. Every time a socket connects, the acceptor threads accepts the connection and assign the socket to a selector, chosen in a round robin fashion. The selector is responsible to detect activity on that socket (I/O events such as read availability and write availability) and signal that event to other code in Jetty that will handle the event. One thread runs one selector. This is basic async I/O using selectors. If you have a very busy server (say 100k connected clients at any time or more), If you want to "spread" those clients among many selectors, so that each selector will handle a portion of the connected clients and be faster in responding to client activity.
From Ambari 2.5.0 onwards the logic is much enhanced as part of : https://issues.apache.org/jira/browse/AMBARI-18827 to avoid blocking of ambari agent restart for hosts where we have higher number of cores. Now from ambari 2.5 the formula will be following for configuring the threadpool: configureJettyThreadPool(serverForAgent, acceptors * 2, AGENT_THREAD_POOL_NAME, configs.getAgentThreadPoolSize());
The AGENT_THREADPOOL_SIZE is controlled by the "agent.threadpool.size.max" (default value is 25) property [1]
"agent.threadpool.size.max" sets max number of threads used to process heartbeats from ambari agents and view.extraction.threadpool.size.max - for Views UI. The CLIENT_THREADPOOL_SIZE is controlled by the "client.threadpool.size.max" property [2] used for REST API calls: We might use: totalCPUs=Number of CPU cores on host machine
client.threadpool.size.max=totalCPUs+1
agent.threadpool.size.max=totalCPUs+1 .
[1] https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java#L2035-L2036 [2] https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java#L2020
... View more
02-07-2017
05:33 AM
4 Kudos
- Ambari manages it's Http Session information's using "AMBARISESSIONID". So if we want to logout the logged in user then we will need to find out it's "AMBARISESSIONID" cookie value. We can get it using browser debug tools like for Google chrome we can use Menu -> More Tools --> Developer Tools The we can go to the "Network" tab of the developer tool and then on the right hand side we should see the Cookies and other request headers. Here i have found that the value for the "AMBARISESSIONID" Http Session Cookie is "1t4o6q0ph8j23etnl3e6ig5b3" hence now we can simply make a curl call as following in order to get this user logged out: $ curl -u admin:admin -i -H 'X-Requested-By:ambari' -H "Cookie: AMBARISESSIONID=1t4o6q0ph8j23etnl3e6ig5b3" -X GET http://c6401.ambari.apache.org:8080/api/v1/logout
HTTP/1.1 200 OK
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
User: admin
Content-Type: text/plain
Content-Length: 0
Server: Jetty(8.1.19.v20160209) - As soon as the above curl command is executed we will see that the user is logged out from the ambari UI on the browser. . We can also enable the Http Session logging in the ambari server log by editing the file "/etc/ambari-server/conf/log4j.properties" and adding the following line at the end. log4j.logger.org.eclipse.jetty.server.session=DEBUG
Now When we will restart ambari server then we can see that the logged in users sessions are printed there: 07 Feb 2017 05:21:20,283 DEBUG [ambari-client-thread-29] session:275 - Got Session ID 1t4o6q0ph8j23etnl3e6ig5b3 from cookie With the above approach we can get all the active Session IDs and can force logout them all. However enabling DEBUG logging will causes excessive log event generation so we need to be careful there.
... View more
Labels:
02-06-2017
10:34 AM
@Saurabh "/var/log/yum.log" file can be checked to know if a package is installed properly or not. Although it won't show the percentage. Example: # cat /var/log/yum.log | grep ambari-metrics-monitor
Feb 06 10:38:35 Erased: ambari-metrics-monitor
Feb 06 10:39:36 Installed: ambari-metrics-monitor-2.4.2.0-136.x86_64
. For little more DEBUG informations you might want to increase the "debuglevel" in the file "/etc/yum.conf". debuglevel=value
Where value is an integer between 1 and 10. Setting a higher debuglevel value causes yum to display more detailed debugging output. debuglevel=0 disables debugging output, while debuglevel=2 is the default. . https://linux.die.net/man/5/yum.conf .
... View more
02-06-2017
05:00 AM
@Jacqualin jasmin In your CentOS when you will run the following command then you should see that from CentOS "base" repo you can get this zlib RPM package. # cat /etc/redhat-release
CentOS release 6.6 (Final)
# yum info zlib-devel
Available Packages
Name : zlib-devel
Arch : i686
Version : 1.2.3
Release : 29.el6
Size : 44 k
Repo : base
Summary : Header files and libraries for Zlib development
URL : http://www.gzip.org/zlib/
License : zlib and Boost
Description : The zlib-devel package contains the header files and libraries needed
: to develop programs that use the zlib compression and decompression
: library.
Name : zlib-devel
Arch : x86_64
Version : 1.2.3
Release : 29.el6
Size : 44 k
Repo : base
Summary : Header files and libraries for Zlib development
URL : http://www.gzip.org/zlib/
License : zlib and Boost
Description : The zlib-devel package contains the header files and libraries needed
: to develop programs that use the zlib compression and decompression
: library.
http://www.gzip.org/zlib/ - As this package is by default available with the CentOS "base" repo. so you should be able to directly install it as @Artem Ervits mentioned earlier (if you have internet connectivity available on the host). yum install zlib-devel - Please look at the following file to see if the base repo is present there or not "/etc/yum.repos.d/CentOS-Base.rep" . - If you want to download it from some external repos then you might want to look at the following links. However the CentOs shipped "base" repos are more trusted. 1. https://centos.pkgs.org/6/centos-x86_64/zlib-1.2.3-29.el6.x86_64.rpm.html 2. https://rpmfind.net/linux/rpm2html/search.php?query=zlib .
... View more
02-03-2017
05:37 AM
@Amit Kumar
How did you add the entries in the "/etc/hosts" file something like below ... or in a different way ? AS we already discussed about it .... and i though it did not work for you? 172.20.0.2 8c043e0d490c
172.20.0.3 16aadcc9c315
172.20.0.4 b1ec39e6d58b
... View more