Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2024 | 04-27-2020 03:48 AM | |
4010 | 04-26-2020 06:18 PM | |
3231 | 04-26-2020 06:05 PM | |
2594 | 04-13-2020 08:53 PM | |
3847 | 03-31-2020 02:10 AM |
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-07-2017
06:42 AM
@Saurabh You can check /var/log/messages to see if installation has started. Also if you want to check how much data has been downloaded, yum keeps package in yum cache while downloading, you can run 'du -sh' in watch command to check the status. Example. Before downloading package [root@prodnode1 ~]# ls -lrt /var/cache/yum//x86_64/6/Updates-ambari-2.4.0.1/packages/
total 0 Download started [root@prodnode1 ~]# /usr/bin/yum -d 0 -e 0 -y install ambari-metrics-hadoop-sink Status of cache directory [root@prodnode1 ~]# ls -lrt /var/cache/yum//x86_64/6/Updates-ambari-2.4.0.1/packages/
total 4552
-rw-r--r--. 1 root root 4660232 Aug 30 20:49 ambari-metrics-hadoop-sink-2.4.0.1-1.x86_64.rpm After installation is complete, package gets removed from cached location. You can run something like below to keep watch over download [root@prodnode1 ~]# watch du -sh /var/cache/yum//x86_64/6/Updates-ambari-2.4.0.1/packages/ambari-metrics-hadoop-sink-2.4.0.1-1.x86_64.rpm Hope this what you were looking for. Please do let us know if you have any further questions! 🙂
... View more
02-03-2017
06:35 AM
Yes, it is the same way you mentioned. I think, I misinterpreted you response and responded wrongly.
For each cluster, there were only one entry.
I added rest of the two.
... View more
02-13-2019
02:08 PM
Why would you put a Google Drive link to something protected in a blog post? 🙂
... View more
02-02-2017
10:07 AM
@Jay SenSharma: Can you please help me to get dir last accessed time also. Above one is not working for dir.
... View more
01-24-2017
04:12 PM
@Jay SenSharma Thnx, now its working.
... View more
01-24-2017
02:21 PM
@Baruch AMOUSSOU DJANGBAN Your Posted repo file contents are not right, Even base url is wrong. Not sure from where you have downloaded them?
The content from the "hdp.repo" should be something like following according to [1]. Please see the link [2] for the list of repos for different OS. #VERSION_NUMBER=2.5.3.0-37
[HDP-2.5.3.0]
name=HDP Version - HDP-2.5.3.0
baseurl=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.5.3.0
gpgcheck=1
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.5.3.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1
[HDP-UTILS-1.1.0.21]
name=HDP-UTILS Version - HDP-UTILS-1.1.0.21
baseurl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos6
gpgcheck=1
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.5.3.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1 As you have mentioned that you do not have internet connectivity, hence you will need to configure Local Offline Repository as mentioned in my previous comment. Please see [3]
[1] http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.5.3.0/hdp.repo
[2] https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-installation/content/hdp_25_repositories.html
[3] https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.0.1/bk_ambari-installation/content/setting_up_a_local_repository_with_no_internet_access.html .
... View more
01-23-2017
10:10 AM
Yes, I run the command success before, but it is not right when I run the command after I install LDAP. Thank you, I will retry a minute.
... View more
01-25-2017
04:37 AM
I have shifted to HDP 2.4, and you just need to start Metrics Monitors from Ambari to make everything work. There's probably a problem with HDP 2.5. Please notify if you have a working solution for HDP 2.5.
... View more
01-09-2017
04:43 AM
@Jay SenSharma yes sasl is enabled as true in hive-site.xml. But it is still showing error.
... View more