Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2731 | 04-27-2020 03:48 AM | |
| 5289 | 04-26-2020 06:18 PM | |
| 4459 | 04-26-2020 06:05 PM | |
| 3584 | 04-13-2020 08:53 PM | |
| 5387 | 03-31-2020 02:10 AM |
02-26-2018
12:41 PM
3 Kudos
@Michael Bronson Please try this: 1. Cleanup/Remove some old files at "/var/lib/yum/transaction*" which are old transactions and not cleaned up by any chance. 2. Use the "yum-complete-transaction" utility to cleanup old incomplete transactions: # yum install yum-utils -y
# yum-complete-transaction --cleanup-only
(OR)
# yum-complete-transaction . Then retry the installation process. Please run these commands on all those hosts where the installation failed.
... View more
02-26-2018
12:34 PM
@Yassine Alternative of telnet can be "netcat" as following: # nc -v 10.166.54.12 8020
# nc -v $REMOTE_NN_HOSTNAME 8020 . Also please check of on the remote NameNode if this port 8020 is actually bound to 0.0.0.0 address (or 10.166.54.12) or some other address? Following command we need to run on the host which has IP Address 10.166.54.12 to know if the port 8020 is actually opened and listening on which IP Address? # netstat -tnlpa | grep 8020<br> .
... View more
02-26-2018
12:24 PM
@Yassine Can you please try two things. (I am assuming that you are running HDFS command from secure cluster Node to connect to Non secure NameNode hence in that case we do not need to have kerberos ticket, But if it is vice-versa then we will need to have kerberos ticket as well) 1. Please make sure that the remote clusters IP Address (and Hostname) and port is accessible ? (this is to isolate firewall blocking issue) # telnet 10.166.54.12 8020
# telnet $REMOTE_NN_HOSTNAME 8020 2. Please try to specify the "--config" parameter to poiint to a directory where you have kept the HDFS configuration file of remote cluster. # hadoop --config /PATH/TO/Remote_Clusters fs -ls / Here please replace the "/PATH/TO/Remote_Clusters" with the path where you have kept the "hdfs-site.xml" and "core-site.xml" file of remote cluster. .
... View more
02-26-2018
12:02 PM
@Amira khalifa Please check if the JAR is ok (not corrupted) and it contains the "org.postgresql.Driver" class, you can do so by listing the JAR contents as following: # su - nifi
# jar -tvf /home/smadmin/jdbc/postgresql-42.2.1.jar | grep Driver.class Also please check the permission of the JAR to findout if the "nifi" user is able to read that JAR? And if the PATH is correct? # ls -l /home/smadmin/jdbc/postgresql-42.2.1.jar .
... View more
02-26-2018
11:22 AM
@Amira khalifa Can you please share the exact error that you are getting? Are you getting the Postgres Driver related errors while configuring the DBCP connection pooling in Nifi? If Yes, then please check if you have defined the "Database Driver Jar Url" property with the absolute path to you "postgresqlxxxx-jdbc4.jar" JDBC driver jar file. Also please check that this JAR has proper read permission for the Nifi user. Example: file:///usr/share/java/postgresql94-jdbc.jar
file:///c:/postgresql94-jdbc.jar Also if you are managing your HDF cluster suing Ambari then you also might want to see the "--jdbc-driver" option to know how to setup postgresql JDBC driver. https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.1.0/bk_installing-hdf-and-hdp/content/setup_options.html .
... View more
02-26-2018
11:00 AM
2 Kudos
@Michael Bronson Yes, your steps looks correct: 0. Stop ambari-server # ambari-server stop 1. Change the PATH for those 3 properties mentioned in the ambari.properties file. pid.dir=/var/ambari-server
bootstrap.dir=/var/ambari-server/bootstrap
recommendations.dir=/var/ambari-server/stack-recommendations<br> 2. Run the "ambari-server setup" and during the ambari-server setup process, when prompted to Customize user account for ambari-server daemon?, choose y (Please do not change any other properties) NOTE: Just to avoid any mistakes it is always better to take ambari DB dump (just to make sure that by mistake we do not make any other db changes) 3. Then restart ambari-server. # ambari-server start .
... View more
02-26-2018
10:30 AM
@L V Are you sure that you have added role "AMBARI" and "AMBARIUI" both the blocks inside your knox topology file and then restarted the knox? <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://$AMBARI_HOST:8080</url>
</service>
<service>
<role>AMBARIUI</role>
<url>http://$AMBARI_HOST:8080</url>
</service>
</topology> . Please add both the service blocks, as most of the Amabri Views uses ambari APIs to get the configuration details so we should add both the blocks.
... View more
02-26-2018
10:22 AM
@Michael Bronson In some cases, we might see that once we reboot the ambari server host then this directory is getting created again with "root:root" permissions. This can happen, if by any chance if the "pid.dir" or "recommendations.dir" is mounted on "tmpfs" then rebooting the host might alter the permissions back to 'root:root' and hence the non root ambari user will again not be able to write to these directories. Please NOTE that if you face such issue of getting the permission changed for these directories then please change the values "pid.dir", "bootstrap.dir" and "recommendations.dir" insife ambari.properties file to point to a directory which is not on tmpfs. Like "/var/ambari-server" shouldn't be deleted by the operating system after host reboot. So in such scenarios moving the directories under non tmpfs and re-running ambari-server setup is the best option.
... View more
02-26-2018
09:58 AM
1 Kudo
@Michael Bronson When we try to run ambari-server as a Non Root user then it is required that this user should have Read & Write access to the following directories. pid.dir=/var/run/ambari-server
bootstrap.dir=/var/run/ambari-server/bootstrap
recommendations.dir=/var/run/ambari-server/stack-recommendations . Above 3 directories default values can be found inside the "/etc/ambari-server/conf/ambari.properties" All the permission changes are done when we run the "ambari-server setup" command which runs as root. When we run "ambari-server setup" then ambari will create the directories with the correct permissions .
... View more
02-26-2018
08:09 AM
@ASIF Khan Please refer to the following links to know more about Shiro Authentication and roles: https://zeppelin.apache.org/docs/0.6.2/security/shiroauthentication.html
... View more