Member since
02-08-2016
793
Posts
669
Kudos Received
85
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
3072 | 06-30-2017 05:30 PM | |
3995 | 06-30-2017 02:57 PM | |
3315 | 05-30-2017 07:00 AM | |
3889 | 01-20-2017 10:18 AM | |
8407 | 01-11-2017 02:11 PM |
11-28-2016
01:40 PM
7 Kudos
Grafana username and password is stored in a sqlite3 database. One of the way is to reset the password back to admin first and then can be changed in Grafana Dashboard. To do the same, following steps could be used: 1. Logon to the node where Grafana is installed and invoke Grafana sqlite3 database as follows: # sqlite3 /var/lib/ambari-metrics-grafana/grafana.db
sqlite> select salt, password from user;
pyaUhfDzYg|54c7d1ce2eeaa6000bd84407d0f8ab4663dfa575e0a326bc70dc5cab4b864f6677b21879dbf5e33427c88f9160f744b625bf
sqlite> update user set password = '59acf18b94d7eb0694c61e60ce44c110c7a683ac6a8f09580d626f90f4a242000746579358d77dd9e570e83fa24faa88a8a6', salt = 'F3FAxVm33R' where login = 'admin';
sqlite> .exit 2. Once done, edit Ambari Metrics Server-Configs and update Grafana Password to "admin" 3. Restart the Ambari Metrics Server 4. Access Grafana page using the Quick Links under Ambari Metric Server Dashboard 5. Click on the Grafana Symbol in the top left corner of the screen and Sign-in as admin user with "admin" password 6. Click on Global Users and edit admin user to change the password 7. Once the password is changed, change Grafana Admin password in Ambari Metrics Server-Configs as well Note: If the password is incorrect in Grafana database / Ambari Metrics Server configs, following errors would be observed: Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_grafana.py", line 64, in <module>
AmsGrafana().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute
method(env)
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 535, in restart
self.start(env)
File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_grafana.py", line 46, in start
create_ams_datasource()
File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_grafana_util.py", line 230, in create_ams_datasource
(response.status, response.reason, data))
resource_management.core.exceptions.Fail: Ambari Metrics Grafana data source creation failed. POST request status: 401 Unauthorized
{"message":"Invalid username or password"}
... View more
Labels:
11-24-2016
03:42 PM
@Rajan Babu Selvanamasivayam Check this to resolve the issue - https://www.youtube.com/watch?v=HVUMBWX_6os
... View more
11-24-2016
03:39 PM
Can you attach screenshot?
... View more
11-24-2016
05:59 AM
@Santhosh B Gowda Make sure you have added the property in custom hdfs-site <property>
<name>dfs.namenode.acls.enabled</name>
<value>true</value>
</property>
... View more
11-24-2016
05:45 AM
@Santhosh B Gowda For HDFS acl pls check - http://hortonworks.com/blog/hdfs-acls-fine-grained-permissions-hdfs-files-hadoop/ I will suggest to use Ranger for this. It will be very easy to manage and easy for giving authorization to users. Check this - http://hortonworks.com/hadoop-tutorial/manage-security-policy-hive-hbase-knox-ranger/
... View more
11-23-2016
05:13 AM
You need to check for Sandbox networking and not local desktop/machine. Can you paste the screenshot for the same.
... View more
11-22-2016
07:41 PM
"Bridged" option should be fine.
... View more
11-22-2016
05:37 AM
@Rajan Babu Selvanamasivayam Can you check network adapter settings -
Open the Virtual Machine Control Panel (Edit > Virtual Machine Settings). Also please refer below link for step by step details - https://hortonworks.com/wp-content/uploads/2013/03/InstallingHortonworksSandboxonWindowsUsingVMwarePlayerv2.pdf
... View more
11-22-2016
05:27 AM
@Sunile Manjee I see from HDP 2.5 audit to db support is removed and Solr is the only option to used as Ranger audit. With respect to DB size recommendations i need to check.
... View more
11-20-2016
05:28 AM
@Anandha L Ranganathan Can you try to delete it using rest api. pls find sample link below - curl -v -X PUT -d '{"state": "KILLED"}''http://localhost:8088/ws/v1/cluster/apps/application_xxxxxxxx_xxxx'
... View more