Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2725 | 04-27-2020 03:48 AM | |
| 5285 | 04-26-2020 06:18 PM | |
| 4450 | 04-26-2020 06:05 PM | |
| 3576 | 04-13-2020 08:53 PM | |
| 5380 | 03-31-2020 02:10 AM |
08-12-2017
06:38 PM
@Lucy Tan Wow!!! good to know that the issue is resolved. It will be great to close this thread as the issue is resolved.
... View more
08-12-2017
06:26 PM
@Lucy Tan Can you please check the following line of your "nifi.sh" if it has the correct value? Or may be you can echo the following line output to see what value is it taking actually and from where? run_nifi_cmd="'${JAVA}' -cp '${BOOTSTRAP_CLASSPATH}' -Xms12m -Xmx24m ${BOOTSTRAP_DIR_PARAMS} org.apache.nifi.bootstrap.RunNiFi $@" - I am assuming that you might have removed any "-Xms12m -Xmx24m" such reference from inside your script. Reference: https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/bin/nifi.sh#L309 .
... View more
08-12-2017
06:07 PM
1 Kudo
@Lucy Tan The mentioned error, Can occur if you have specified the -Xms greater than the -Xmx value. Error occurred during initialization of VM. Incompatible minimum and maximum heap sizes are specified . Please make sure that they are properly set. For example please check the below error, Here i am setting the Xmx (Maximum Heap) to a lower value than the -Xms (Initial Heap) So i get the error. # java -Xmx1056M -Xms2056M -version
Issue: Error occurred during initialization of VM. Incompatible minimum and maximum heap sizes specified . So please check the global settings .. if somewhere you have set incorrect values for these parameters which is taking precedence. It also depends on the JVM architecture ... Like with 32 bit JVM you can not define much larger heap.. So also please check the output of the following command which will tell your JVM architecture and version # java -version .
... View more
08-11-2017
08:33 PM
1 Kudo
@Warius Unnlauf You do not need to re-execute Step3 to change the port. You can simply edit the ambari properties "client.api.ssl.port" to change the port from 8443 to something else. # cp -f /etc/ambari-server/conf/ambari.properties /etc/ambari-server/conf/ambari.properties.BAK
# vi /etc/ambari-server/conf/ambari.properties The Port property is the following thay needs to be changed ... followed by ambari-server restart. client.api.ssl.port=8444 .
... View more
08-11-2017
05:23 PM
2 Kudos
@Warius Unnlauf Please check which other process is consuming that port? # netstat -tnlpa | grep 8443 . Sometimes we configure Ambari to run on HTTPS so the port might be same. Using the netstat command we should see which Process ID is actually consuming that port.
... View more
08-11-2017
04:14 PM
@arjun more What we wanted to say is ... that the "NULL" value is how it is shown for MySQL. Other databases like PostgreSQL might show that NULL column value as blank. So as you are using MySQL so the NULL value is fine there (until there is a upgrade already going on) ... Otherwise the value for that column in MYSQL can be seen as NULL. So your Database shows correct value if there is no upgrade initiated. NULL is not same as blank string. So your update query is Incorrect where you are trying to set a blank string value there. For Example: in Postgres same value you can see as blank (Empty) but actually that is NULL # psql -U ambari ambari
Password for user ambari:
psql (9.2.18)
Type "help" for help.
ambari=> SELECT cluster_id , resource_id , upgrade_id , cluster_info , cluster_name, provisioning_state FROM clusters;
cluster_id | resource_id | upgrade_id | cluster_info | cluster_name | provisioning_state
------------+-------------+------------+--------------+--------------+--------------------
2 | 4 | | | plain_ambari | INSTALLED
<br> . Similar Table on MySQL is shown as following with NULL value: mysql> SELECT cluster_id , resource_id , upgrade_id , cluster_info , cluster_name, provisioning_state FROM clusters;
+------------+-------------+------------+--------------+--------------+--------------------+
| cluster_id | resource_id | upgrade_id | cluster_info | cluster_name | provisioning_state |
+------------+-------------+------------+--------------+--------------+--------------------+
| 2 | 4 | NULL | | plain | INSTALLED |
+------------+-------------+------------+--------------+--------------+--------------------+ The Main Question here is "Why do you want to set the value of that column to blank String" ? It is already NULL.
... View more
08-11-2017
03:50 PM
1 Kudo
@arjun more Why do you want to set an Empty String to the upgrade_id column? The upgrade_id column is mapped with the "upgrade" table's (upgrade_id). The NULL value in the clusters table (upgrade_id) field shows that the upgrade is not yet started. . Can you please share the error that made you edit that table?
... View more
08-11-2017
10:37 AM
@Chiranjeevi Nimmala You are getting followine error , other errors might be the side effect of this. Causedby: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException):Unauthorized connection forsuper-user: root from IP XXXXXXXXX So please Gor o HDFS--> Configs --> Advanced --> Custom core-site and add the following property: hadoop.proxyuser.root.hosts=* The restart the required services and then try accessing the view again . In the above parameter either you need to specify Comma separated list of All the DataNode Hostnames including Ambari Server host name ... or else you can define *
... View more
08-11-2017
07:17 AM
@uri ben-ari "plain_cluster" is the Name of my ambari cluster. You will need to replace it with your cluster name. You can find the clustername using the following call. curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://$AMBARI_HOST:8080/api/v1/clusters/
... View more
08-11-2017
07:06 AM
@uri ben-ari When we make a call to /clusterName API then we should be able to find the right config that has this property. curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://amb25101.example.com:8080/api/v1/clusters/plain_ambari and then we can grep 'mapreduce.map.memory.mb' to find which config has thie entry.
... View more