File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -239,6 +239,14 @@ function changeWardenConfig() {
239
239
fi
240
240
}
241
241
242
+ function changeCompatibilityVersions() {
243
+ component_name=$1
244
+ component_version=$2
245
+ compatibility_version_file_path=" ${SPARK_HOME} /mapr-util/compatibility.version"
246
+ new_component_line=" ${component_name} _versions=${component_version} "
247
+ sed -i " /$component_name /c\\ $new_component_line " " $compatibility_version_file_path "
248
+ }
249
+
242
250
#
243
251
# Change permission
244
252
#
@@ -382,6 +390,7 @@ function configureOnHive() {
382
390
if [ -f $SPARK_HOME /conf/hive-site.xml ] ; then
383
391
java -cp $SPARK_HOME ' /jars/*' org.apache.spark.editor.HiveSiteEditor replace hive.security.authorization.manager=org.apache.hadoop.hive.ql.security.authorization.plugin.fallback.FallbackHiveAuthorizerFactory hive.execution.engine=mr
384
392
fi
393
+ changeCompatibilityVersions hive $HIVE_VERSION
385
394
}
386
395
387
396
#
@@ -392,6 +401,15 @@ function configureOnHbase() {
392
401
if [ -f $HBASE_HOME /conf/hbase-site.xml ]; then
393
402
cp $HBASE_HOME /conf/hbase-site.xml $SPARK_HOME /conf/hbase-site.xml
394
403
fi
404
+ changeCompatibilityVersions hbase $HBASE_VERSION
405
+ }
406
+
407
+ #
408
+ # Configure on Hadoop
409
+ #
410
+
411
+ function configureOnHadoop() {
412
+ changeCompatibilityVersions hbase $HBASE_VERSION
395
413
}
396
414
397
415
#
652
670
if [ " $HBASE_INSTALLED " = true ]; then
653
671
configureOnHbase
654
672
fi
673
+ configureOnHadoop
655
674
if [ ! " $isSecure " -eq 2 ] ; then
656
675
configureSecurity
657
676
fi
You can’t perform that action at this time.
0 commit comments