Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

what is the right approtch to set update parameters

avatar

I need to update the following parameters in my old ambari cluster to be most updated ( each parameter have config type)

recovery_enabled fs.trash.interval dfs.datanode.data.dir dfs.namenode.accesstime.precision delete.topic.enable log.retention.bytes spark.history.fs.cleaner.enabled spark.history.fs.cleaner.interval spark.history.fs.cleaner.maxAge spark_daemon_memory spark_thrift_cmd_opts spark.broadcast.blockSize spark.driver.maxResultSize spark.dynamicAllocation.executorIdleTimeout spark.dynamicAllocation.initialExecutors spark.dynamicAllocation.maxExecutors spark.dynamicAllocation.schedulerBacklogTimeout spark.executor.memory spark.files.maxPartitionBytes spark.files.openCostInBytes spark.kryoserializer.buffer.max spark.memory.offHeap.enabled spark.memory.offHeap.size spark.sql.autoBroadcastJoinThreshold spark.sql.shuffle.partitions spark.storage.memoryMapThreshold tez.runtime.io.sort.mb tez.runtime.unordered.output.buffer.size-mb tez.task.resource.memory.mb initLimit syncLimit hive.auto.convert.join.noconditionaltask.size hive.tez.container.size mapreduce.map.java.opts mapreduce.map.memory.mb mapreduce.reduce.java.opts mapreduce.reduce.memory.mb mapreduce.task.io.sort.mb yarn.app.mapreduce.am.command-opts yarn.app.mapreduce.am.resource.mb spark_thrift_cmd_opts resourcemanager_heapsize yarn.nodemanager.resource.cpu-vcores yarn.nodemanager.resource.memory-mb yarn.resourcemanager.am.max-attempts yarn.scheduler.maximum-allocation-mb yarn.scheduler.maximum-allocation-vcores syncLimit

after we set all parameters and with their updated values ( with config.sh script ) , and perform restart on all required services / components

some of the services/components cannot started

what is wrong with my procedure?

list of the config type for the parameters :

cluster-env core-site hdfs-site hive-interactive-site hive-site kafka-broker mapred-site spark2-defaults spark2-env spark2-thrift-sparkconf tez-interactive-site tez-site yarn-env yarn-site zoo.cfg

remark - all the updated parameters already set on other new ambari cluster

Michael-Bronson
1 ACCEPTED SOLUTION

avatar
Master Mentor

@uri ben-ari

After setting those parameters , you mentioned that "some of the services/components cannot started".

So can you please check the logs of those services and let us know if you see any error?

As we see that the above mentioned parameters are somewhere related to tuning like Heap and other memory related parameters that differ from environment to environment. So the other clusters values might not be exactly same and applicable for this cluster nodes as well.

View solution in original post

6 REPLIES 6

avatar
Master Mentor

@uri ben-ari

After setting those parameters , you mentioned that "some of the services/components cannot started".

So can you please check the logs of those services and let us know if you see any error?

As we see that the above mentioned parameters are somewhere related to tuning like Heap and other memory related parameters that differ from environment to environment. So the other clusters values might not be exactly same and applicable for this cluster nodes as well.

avatar

all the cluster the old and the new are the same except the parameters ! (for sure), so I not understand why on the new cluster with the update json all parameters are update and when we want to do upgrade parametes on the old cluster we get the not start services/components

Michael-Bronson

avatar

maybe we need to restart after each parameter update ? , or do the update according to config type preiority ?

Michael-Bronson

avatar

is it possible to know from all the parameters list what is the values from parameters that cause the problems?

Michael-Bronson

avatar
Master Mentor

@uri ben-ari

I am not sure at this point regarding your last query. However it will be good to first see what error are we getting to understand why the services are not starting. Looking at the service/components logs or the Ambari UI operation history will give us fare idea on why the service start failed.

avatar

generic question , do we need to do restart after each parameter settings ? or we can do after we set all parameters?

Michael-Bronson