Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2730 | 04-27-2020 03:48 AM | |
| 5288 | 04-26-2020 06:18 PM | |
| 4458 | 04-26-2020 06:05 PM | |
| 3584 | 04-13-2020 08:53 PM | |
| 5383 | 03-31-2020 02:10 AM |
09-20-2017
12:32 PM
@darkz yu The error that you posted indicates some issue with your "monitor.py" python script. 'NoneType'object has no attribute 'modules' . Please try running that script manually to see if it works or causes the same error? Please make sure that it uses the PYTHONPATH that your ambari agent is using. # python monitor.py . For example the pythonpath i use as following: export PYTHONPATH=/usr/lib/python2.6/site-packages:/usr/lib/python2.6/site-packages/ambari_commons:/usr/lib/python2.6/site-packages:/usr/lib/python2.6/site-packages:/usr/lib/python2.6/site-packages/ambari_commons:/usr/lib/python2.6/site-packages::/usr/lib/python2.6/site-packages:/usr/lib/python2.6/site-packages/ambari_agent:/usr/lib/python2.6/site-packages .
... View more
09-20-2017
07:59 AM
@Sen Ke Good to know that the issue is resolved and you are able to access the Views via Knox now. It will be also great if you can mark this HCC thread as "Accepted", sothat other HCC users can quickly browse the answered solutions if they hit the same/simialr issue.
... View more
09-20-2017
07:14 AM
@Sen Ke This is what i tried on Ambari 2.5.2 and i have the following content inside my newly created file "/etc/knox/conf/topologies/ui.xml" file and then restarted the knox and i am able to access the Ambari UI as well as all the Views without any issue. <topology>
<gateway>
<provider>
<role>authentication</role>
<name>Anonymous</name>
<enabled>true</enabled>
</provider>
<provider>
<role>identity-assertion</role>
<name>Default</name>
<enabled>false</enabled>
</provider>
</gateway>
<service>
<role>AMBARI</role>
<url>http://knox.example.com:8080/</url>
</service>
<service>
<role>AMBARIUI</role>
<url>http://knox.example.com:8080/</url>
</service>
</topology> . URL that i used to access the FileView: https://knox.example.com:8443/gateway/ui/ambari/#/main/view/FILES/auto_files_instance To access ambari: https://knox.example.com:8443/gateway/ui/ambari .
... View more
09-19-2017
06:37 AM
1 Kudo
@Akshay Gupta What i see is... sometimes me too get the message and sandbox seems to be stuck there, But actually all it's functionality works well because most of its services like ssh and other are started till that point. "Started cleanup of temporary directories" . So you can continue to work with Ambari and other services .. even if the sandbox seems to be stuck. Sometimes it happens due to lack of resources (like RAM). So i keep the unwanted services in Maintenance Mode (stopped + Maintenance Mode) .
... View more
09-19-2017
02:27 AM
1 Kudo
@Akshay Gupta The following message is normal. "Started cleanup of temporary directories" . When this message appears ... before that the ssh port would have already been opened so you can do SSH to the Sandbox as following (Note the port is 2222) # ssh root@127.0.0.1 -p 2222 . Once you are able to login to sandbox using ssh and then check if the following service is running or not? That is responsible for opening the port 4200 # service shellinaboxd start
# systemctl enable shellinaboxd.service
# netstat -nap | grep shellinabox .
... View more
09-18-2017
08:19 AM
@Vinay MP The following Link, Describes why it was needed or why this feature was introduced: https://www.python.org/dev/peps/pep-0476/ . CVE-2014-9365 The Python standard library HTTP client modules (such as httplib or
urllib) did not perform verification of TLS/SSL certificates when
connecting to HTTPS servers. A man-in-the-middle attacker could use this
flaw to hijack connections and eavesdrop or modify transferred data.
... View more
09-18-2017
08:09 AM
@Vinay MP Pleas echeck your python version . Is it "python-2.7.5" or higherif yes then should try to either downgrade the python version to lower than python-2.7.5 else it might causes this issue. [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579) (OR) Else you will need to following the steps mentioned in the following doc to fix the "certificate verify failed (_ssl.c" issue while using RHEL7: Controlling and troubleshooting certificate verification
https://access.redhat.com/articles/2039753#controlling-certificate-verification-7
. . The second option is safe as long as you do not want the certificate verification (or if you are in test environment). Otherwise it is highly discouraged to disable it. The verify=disable, ensures that the HTTPS certificate verification is disabled. You can verify the same using the Sample code mentioned in the above link to see if it works at your end. . With Python 2.7.9 release the default HTTPS behaviour has changed, which is now to always verify the remote HTTPS certificate to which you are initiating a connection. In the Python 2.7.9 release notes you can read more about the changes that made it in this release of Python, and PEP 476 provides the technical details and rationale about this change.
... View more
09-17-2017
10:08 AM
@Lukasz Szary Good to know that it's working now. It will be great if you can mark this HCC thread as Answered (Accepted) so that other HCC users can easily browse the answered threads when they encounter the similar error.
... View more
09-17-2017
08:34 AM
@Daniel Nicholas Good to know that the issue is resolved. Basically the setting "enabled=0" will temporarily disable the sandbox.repo as that repo seems to have some issues currently and hence causing 403 error.
... View more
09-17-2017
06:55 AM
@Juan Vares Good to know that the cluster is created fine now. Regarding the other issue of having old cluster names for few alerts: 14 sep 2017 15:29:38,717 ERROR [alert-event-bus-1] AlertReceivedListener:480 - Unable to process alert nifi_status for an invalid cluster named cordisclu
14 sep 2017 15:29:38,717 ERROR [alert-event-bus-1] AlertReceivedListener:480 - Unable to process alert ambari_agent_disk_usage for an invalid cluster named cordisclu . I think this might have happened, if the alert tables have some alert's targetting to the old cluster id. Please check and share the output of the following Queries on Ambari DB: # psql -U ambari ambari
Password for user ambari: bigdata
psql (9.2.18)
Type "help" for help.
ambari=> SELECT cluster_id, definition_name FROM alert_definition WHERE cluster_id NOT IN (SELECT cluster_id FROM cluster_version WHERE state = 'CURRENT');
ambari=> SELECT cluster_id, service_name FROM alert_group WHERE cluster_id NOT IN (SELECT cluster_id FROM cluster_version WHERE state = 'CURRENT');
ambari=> SELECT cluster_id, alert_label, alert_definition_id FROM alert_history WHERE cluster_id NOT IN (SELECT cluster_id FROM cluster_version WHERE state = 'CURRENT');
ambari=> SELECT cluster_id FROM cluster_version WHERE state = 'CURRENT'; .
... View more