Member since
08-08-2017
1652
Posts
30
Kudos Received
11
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 1958 | 06-15-2020 05:23 AM | |
| 15907 | 01-30-2020 08:04 PM | |
| 2100 | 07-07-2019 09:06 PM | |
| 8197 | 01-27-2018 10:17 PM | |
| 4653 | 12-31-2017 10:12 PM |
03-27-2018
04:19 PM
@Aditya what is the syntax for ambari metrics start ?
... View more
03-27-2018
04:17 PM
now we have the output , its ok HTTP/1.1 202 Accepted
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Cache-Control: no-store
Pragma: no-cache
Set-Cookie: AMBARISESSIONID=1sn5tlp90xkn81kp3n34hterju;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
User: admin
Content-Type: text/plain
Vary: Accept-Encoding, User-Agent
Content-Length: 135
Server: Jetty(8.1.19.v20160209)
{
"href" : "http://localhost:8080/api/v1/clusters/hdp/requests/64",
"Requests" : {
"id" : 64,
"status" : "Accepted"
}
... View more
03-27-2018
04:02 PM
I tried your syntax but we get: curl: (6) Could not resolve host: PUT; Unknown error
HTTP/1.1 400 Bad Request
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Cache-Control: no-store
Pragma: no-cache
Set-Cookie: AMBARISESSIONID=5u0mvfkjcd6v1pa1v5apjaymk;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
User: admin
Content-Type: text/plain
Content-Length: 131
Server: Jetty(8.1.19.v20160209)
{
"status" : 400,
"message" : "Invalid desired state only INIT state allowed during creation, providedDesiredState=INSTALLED"
... View more
03-27-2018
03:29 PM
I am using in my bash script the following API in order to stop the ambari METRICS curl -u $USER:$PASSWD -i -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo": {"context" :"$METRICS_SERVICE_ACTION AMBARI_METRICS via REST"}, "Body": {"ServiceInfo": {"state": "INSTALLED"}}}' http://localhost:8080/api/v1/clusters/hdp/services/AMBARI_METRICS
the problem is that Metrics Collector not stopped and also Metrics Monitor on one of the workers machine so actually ambari METRICS was stop partially
my question is
dose my syntax to stop the ambari metrics is the right syntax? second
can we force the Metrics Monitor to stop ?
... View more
Labels:
03-27-2018
01:26 PM
just to explain my case , when we run the script more then 100 times then 100 json file created , so we want to avoid the files creation because we run the script under /.../.../sbin folder
... View more
03-27-2018
01:25 PM
if we cant block the file creation then is it possible to write this file on other folder as /var/tmp insted my curent folder ?
... View more
03-27-2018
12:37 PM
when we set new values by the config.py script script created also the file ( example - doSet_version1522153623088712.json ) is it possoible to flag the script in way to disable this file creation ? /var/lib/ambari-server/resources/scripts/configs.py --user=admin --password=admin --port=8080 --action=set --host=master02 --cluster=hdp --config-type=spark2-thrift-sparkconf -k spark.executor.instances -v 8
ls
doSet_version1522153623088712.json
... View more
Labels:
03-25-2018
11:57 AM
yes seems you are right we already installe more then 30 clusters without problem and without Underscore
... View more
03-25-2018
11:45 AM
we installed from scratch new ambari cluster and we notice that Zkfc is fail to start as the following: what this mean - java.lang.IllegalArgumentException: Does not contain a valid host ?? /usr/hdp/2.6.0.3-8/hadoop/sbin/hadoop-daemon.sh start zkfc
starting zkfc, logging to /var/log/hadoop/hdfs/hadoop-hdfs-zkfc-master01.bx_hhtyr8.com.out
Exception in thread "main" java.lang.IllegalArgumentException: Does not contain a valid host:port authority: master01.bx_hhtyr8.com:8020
at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:213)
at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:164)
at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:153)
at org.apache.hadoop.hdfs.DFSUtil.getAddressesForNameserviceId(DFSUtil.java:699)
at org.apache.hadoop.hdfs.DFSUtil.getAddressesForNsIds(DFSUtil.java:667)
at org.apache.hadoop.hdfs.DFSUtil.getAddresses(DFSUtil.java:650)
at org.apache.hadoop.hdfs.DFSUtil.getHaNnRpcAddresses(DFSUtil.java:749)
at org.apache.hadoop.hdfs.HAUtil.isHAEnabled(HAUtil.java:77)
at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.create(DFSZKFailoverController.java:128)
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Hadoop
03-21-2018
05:26 PM
@Aditya do you think we must check that no maintenance mode in component before HDP upgrade ?
... View more