Repository: ambari Updated Branches: refs/heads/trunk a00e7eb24 -> 80b874004
http://git-wip-us.apache.org/repos/asf/ambari/blob/80b87400/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/scripts/webhcat_service.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/scripts/webhcat_service.py b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/scripts/webhcat_service.py new file mode 100644 index 0000000..cb4aafd --- /dev/null +++ b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/scripts/webhcat_service.py @@ -0,0 +1,111 @@ +""" +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Ambari Agent + +""" +from ambari_commons.os_family_impl import OsFamilyFuncImpl, OsFamilyImpl +from ambari_commons import OSConst +from resource_management.core.resources.service import Service +from resource_management.core.logger import Logger +from resource_management.core.exceptions import Fail +from resource_management.libraries.functions.format import format +from resource_management.libraries.functions.show_logs import show_logs +from resource_management.core.resources.system import Execute, File +import traceback + + +@OsFamilyFuncImpl(os_family=OSConst.WINSRV_FAMILY) +def webhcat_service(action='start', rolling_restart=False): + import params + if action == 'start' or action == 'stop': + Service(params.webhcat_server_win_service_name, action=action) + + +@OsFamilyFuncImpl(os_family=OsFamilyImpl.DEFAULT) +def webhcat_service(action='start', upgrade_type=None): + import params + + environ = { + 'HADOOP_HOME': params.hadoop_home + } + + cmd = format('{webhcat_bin_dir}/webhcat_server.sh') + + if action == 'start': + if upgrade_type is not None and params.version and params.stack_root: + environ['HADOOP_HOME'] = format("{stack_root}/{version}/hadoop") + + daemon_cmd = format('cd {hcat_pid_dir} ; {cmd} start') + no_op_test = format('ls {webhcat_pid_file} >/dev/null 2>&1 && ps -p `cat {webhcat_pid_file}` >/dev/null 2>&1') + try: + Execute(daemon_cmd, + user=params.webhcat_user, + not_if=no_op_test, + environment = environ) + except: + show_logs(params.hcat_log_dir, params.webhcat_user) + raise + elif action == 'stop': + try: + # try stopping WebHCat using its own script + graceful_stop(cmd, environ) + except Fail: + show_logs(params.hcat_log_dir, params.webhcat_user) + Logger.info(traceback.format_exc()) + + # this will retrieve the PID + pid_expression = format("`cat {webhcat_pid_file}`") + + # the PID must exist AND'd with the process must be alive + # the return code here is going to be 0 IFF both conditions are met correctly + process_id_exists_command = format("ls {webhcat_pid_file} >/dev/null 2>&1 && ps -p {pid_expression} >/dev/null 2>&1") + + # kill command to run + daemon_hard_kill_cmd = format("{sudo} kill -9 {pid_expression}") + + # check to ensure that it has stopped by looking for the running PID and then killing + # it forcefully if it exists - the behavior of not-if/only-if is as follows: + # not_if return code IS 0 + # only_if return code is NOT 0 + Execute(daemon_hard_kill_cmd, + only_if = process_id_exists_command, + ignore_failures = True) + + try: + # check if stopped the process, else fail the task + Execute(format("! ({process_id_exists_command})")) + except: + show_logs(params.hcat_log_dir, params.webhcat_user) + raise + + File(params.webhcat_pid_file, action="delete") + +def graceful_stop(cmd, environ): + """ + Attemps to stop WebHCat using its own shell script. On some versions this may not correctly + stop the daemon. + :param cmd: the command to run to stop the daemon + :param environ: the environment variables to execute the command with + :return: + """ + import params + daemon_cmd = format('{cmd} stop') + + Execute(daemon_cmd, + user = params.webhcat_user, + environment = environ) http://git-wip-us.apache.org/repos/asf/ambari/blob/80b87400/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/scripts/webhcat_service_check.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/scripts/webhcat_service_check.py b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/scripts/webhcat_service_check.py new file mode 100644 index 0000000..383bd12 --- /dev/null +++ b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/scripts/webhcat_service_check.py @@ -0,0 +1,133 @@ +#!/usr/bin/env python +""" +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +""" +import urllib2 + +from resource_management.core.logger import Logger +from resource_management.core.exceptions import Fail +from resource_management.core.resources.system import Execute, File +from resource_management.core.source import StaticFile, Template +from resource_management.libraries.script.script import Script +from resource_management.libraries.functions.format import format +from ambari_commons.os_family_impl import OsFamilyFuncImpl, OsFamilyImpl +from ambari_commons import OSConst +import time + +@OsFamilyFuncImpl(os_family=OSConst.WINSRV_FAMILY) +def webhcat_service_check(): + Logger.info("Webhcat smoke test - service status") + + import params + # AMBARI-11633 [WinTP2] Webhcat service check fails + # Hive doesn't pass the environment variables correctly to child processes, which fails the smoke test. + # Reducing the amount of URLs checked to the minimum required. + #smoke_cmd = os.path.join(params.stack_root,"Run-SmokeTests.cmd") + #service = "WEBHCAT" + #Execute(format("cmd /C {smoke_cmd} {service}"), user=params.hcat_user, logoutput=True) + + url_tests = [ + "status", + #These are the failing ones: + #"ddl/database?user.name=hadoop", + #"ddl/database/default/table?user.name=hadoop" + ] + + + import socket + + url_host = socket.getfqdn() + url_port = params.config["configurations"]["webhcat-site"]["templeton.port"] + + for url_test in url_tests: + url_request = "http://{0}:{1}/templeton/v1/{2}".format(url_host, url_port, url_test) + url_response = None + + try: + # execute the query for the JSON that includes WebHCat status + url_response = urllib2.urlopen(url_request, timeout=30) + + status = url_response.getcode() + response = url_response.read() + + if status != 200: + Logger.warning("Webhcat service check status: {0}".format(status)) + Logger.info("Webhcat service check response: {0}".format(response)) + except urllib2.HTTPError as he: + raise Fail("Webhcat check {0} failed: {1}".format(url_request, he.msg)) + finally: + if url_response is not None: + try: + url_response.close() + except: + pass + + +@OsFamilyFuncImpl(os_family=OsFamilyImpl.DEFAULT) +def webhcat_service_check(): + import params + File(format("{tmp_dir}/templetonSmoke.sh"), + content= StaticFile('templetonSmoke.sh'), + mode=0755 + ) + + if params.security_enabled: + smokeuser_keytab=params.smoke_user_keytab + smoke_user_principal=params.smokeuser_principal + else: + smokeuser_keytab= "no_keytab" + smoke_user_principal="no_principal" + + unique_name = format("{smokeuser}.{timestamp}", timestamp = time.time()) + templeton_test_script = format("idtest.{unique_name}.pig") + templeton_test_input = format("/tmp/idtest.{unique_name}.in") + templeton_test_output = format("/tmp/idtest.{unique_name}.out") + + File(format("{tmp_dir}/{templeton_test_script}"), + content = Template("templeton_smoke.pig.j2", templeton_test_input=templeton_test_input, templeton_test_output=templeton_test_output), + owner=params.hdfs_user + ) + + params.HdfsResource(format("/tmp/{templeton_test_script}"), + action = "create_on_execute", + type = "file", + source = format("{tmp_dir}/{templeton_test_script}"), + owner = params.smokeuser + ) + + params.HdfsResource(templeton_test_input, + action = "create_on_execute", + type = "file", + source = "/etc/passwd", + owner = params.smokeuser + ) + + params.HdfsResource(None, action = "execute") + + cmd = format("{tmp_dir}/templetonSmoke.sh {webhcat_server_host[0]} {smokeuser} {templeton_port} {templeton_test_script} {has_pig} {smokeuser_keytab}" + " {security_param} {kinit_path_local} {smoke_user_principal}" + " {tmp_dir}") + + Execute(cmd, + tries=3, + try_sleep=5, + path='/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin', + logoutput=True) + + + http://git-wip-us.apache.org/repos/asf/ambari/blob/80b87400/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/hadoop-metrics2-hivemetastore.properties.j2 ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/hadoop-metrics2-hivemetastore.properties.j2 b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/hadoop-metrics2-hivemetastore.properties.j2 new file mode 100644 index 0000000..82f71c5 --- /dev/null +++ b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/hadoop-metrics2-hivemetastore.properties.j2 @@ -0,0 +1,56 @@ +{# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#} + +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# syntax: [prefix].[source|sink|jmx].[instance].[options] +# See package.html for org.apache.hadoop.metrics2 for details + +{% if has_metric_collector %} + + *.period={{metrics_collection_period}} + *.sink.timeline.plugin.urls=file:///usr/lib/ambari-metrics-hadoop-sink/ambari-metrics-hadoop-sink.jar + *.sink.timeline.class=org.apache.hadoop.metrics2.sink.timeline.HadoopTimelineMetricsSink + *.sink.timeline.period={{metrics_collection_period}} + *.sink.timeline.sendInterval={{metrics_report_interval}}000 + *.sink.timeline.slave.host.name = {{hostname}} + + # HTTPS properties + *.sink.timeline.truststore.path = {{metric_truststore_path}} + *.sink.timeline.truststore.type = {{metric_truststore_type}} + *.sink.timeline.truststore.password = {{metric_truststore_password}} + + hivemetastore.sink.timeline.collector.hosts={{ams_collector_hosts}} + hivemetastore.sink.timeline.port={{metric_collector_port}} + hivemetastore.sink.timeline.protocol={{metric_collector_protocol}} + + +{% endif %} http://git-wip-us.apache.org/repos/asf/ambari/blob/80b87400/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/hadoop-metrics2-hiveserver2.properties.j2 ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/hadoop-metrics2-hiveserver2.properties.j2 b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/hadoop-metrics2-hiveserver2.properties.j2 new file mode 100644 index 0000000..f1bfa03 --- /dev/null +++ b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/hadoop-metrics2-hiveserver2.properties.j2 @@ -0,0 +1,55 @@ +{# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#} + +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# syntax: [prefix].[source|sink|jmx].[instance].[options] +# See package.html for org.apache.hadoop.metrics2 for details + +{% if has_metric_collector %} + + *.period={{metrics_collection_period}} + *.sink.timeline.plugin.urls=file:///usr/lib/ambari-metrics-hadoop-sink/ambari-metrics-hadoop-sink.jar + *.sink.timeline.class=org.apache.hadoop.metrics2.sink.timeline.HadoopTimelineMetricsSink + *.sink.timeline.period={{metrics_collection_period}} + *.sink.timeline.sendInterval={{metrics_report_interval}}000 + *.sink.timeline.slave.host.name = {{hostname}} + + # HTTPS properties + *.sink.timeline.truststore.path = {{metric_truststore_path}} + *.sink.timeline.truststore.type = {{metric_truststore_type}} + *.sink.timeline.truststore.password = {{metric_truststore_password}} + + hiveserver2.sink.timeline.collector.hosts={{ams_collector_hosts}} + hiveserver2.sink.timeline.port={{metric_collector_port}} + hiveserver2.sink.timeline.protocol={{metric_collector_protocol}} + +{% endif %} http://git-wip-us.apache.org/repos/asf/ambari/blob/80b87400/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/hadoop-metrics2-llapdaemon.j2 ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/hadoop-metrics2-llapdaemon.j2 b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/hadoop-metrics2-llapdaemon.j2 new file mode 100644 index 0000000..d63dfb7 --- /dev/null +++ b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/hadoop-metrics2-llapdaemon.j2 @@ -0,0 +1,54 @@ +{# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#} + +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# syntax: [prefix].[source|sink|jmx].[instance].[options] +# See package.html for org.apache.hadoop.metrics2 for details + +{% if has_metric_collector %} + + *.period={{metrics_collection_period}} + *.sink.timeline.plugin.urls=file:///usr/lib/ambari-metrics-hadoop-sink/ambari-metrics-hadoop-sink.jar + *.sink.timeline.class=org.apache.hadoop.metrics2.sink.timeline.HadoopTimelineMetricsSink + *.sink.timeline.period={{metrics_collection_period}} + *.sink.timeline.sendInterval={{metrics_report_interval}}000 + + # HTTPS properties + *.sink.timeline.truststore.path = {{metric_truststore_path}} + *.sink.timeline.truststore.type = {{metric_truststore_type}} + *.sink.timeline.truststore.password = {{metric_truststore_password}} + + llapdaemon.sink.timeline.collector.hosts={{ams_collector_hosts}} + llapdaemon.sink.timeline.port={{metric_collector_port}} + llapdaemon.sink.timeline.protocol={{metric_collector_protocol}} + +{% endif %} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/80b87400/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/hadoop-metrics2-llaptaskscheduler.j2 ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/hadoop-metrics2-llaptaskscheduler.j2 b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/hadoop-metrics2-llaptaskscheduler.j2 new file mode 100644 index 0000000..4c9c981 --- /dev/null +++ b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/hadoop-metrics2-llaptaskscheduler.j2 @@ -0,0 +1,54 @@ +{# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#} + +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# syntax: [prefix].[source|sink|jmx].[instance].[options] +# See package.html for org.apache.hadoop.metrics2 for details + +{% if has_metric_collector %} + + *.period={{metrics_collection_period}} + *.sink.timeline.plugin.urls=file:///usr/lib/ambari-metrics-hadoop-sink/ambari-metrics-hadoop-sink.jar + *.sink.timeline.class=org.apache.hadoop.metrics2.sink.timeline.HadoopTimelineMetricsSink + *.sink.timeline.period={{metrics_collection_period}} + *.sink.timeline.sendInterval={{metrics_report_interval}}000 + + # HTTPS properties + *.sink.timeline.truststore.path = {{metric_truststore_path}} + *.sink.timeline.truststore.type = {{metric_truststore_type}} + *.sink.timeline.truststore.password = {{metric_truststore_password}} + + llaptaskscheduler.sink.timeline.collector.hosts={{ams_collector_hosts}} + llaptaskscheduler.sink.timeline.port={{metric_collector_port}} + llaptaskscheduler.sink.timeline.protocol={{metric_collector_protocol}} + +{% endif %} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/80b87400/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/hive.conf.j2 ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/hive.conf.j2 b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/hive.conf.j2 new file mode 100644 index 0000000..5af53d0 --- /dev/null +++ b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/hive.conf.j2 @@ -0,0 +1,35 @@ +{# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#} + +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +{{hive_user}} - nofile {{hive_user_nofile_limit}} +{{hive_user}} - nproc {{hive_user_nproc_limit}} http://git-wip-us.apache.org/repos/asf/ambari/blob/80b87400/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/startHiveserver2.sh.j2 ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/startHiveserver2.sh.j2 b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/startHiveserver2.sh.j2 new file mode 100644 index 0000000..70b418c --- /dev/null +++ b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/startHiveserver2.sh.j2 @@ -0,0 +1,24 @@ +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +HIVE_SERVER2_OPTS=" -hiveconf hive.log.file=hiveserver2.log -hiveconf hive.log.dir=$5" +HIVE_CONF_DIR=$4 {{hive_bin}}/hiveserver2 -hiveconf hive.metastore.uris=" " ${HIVE_SERVER2_OPTS} > $1 2> $2 & +echo $!|cat>$3 http://git-wip-us.apache.org/repos/asf/ambari/blob/80b87400/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/startHiveserver2Interactive.sh.j2 ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/startHiveserver2Interactive.sh.j2 b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/startHiveserver2Interactive.sh.j2 new file mode 100644 index 0000000..6062a7e --- /dev/null +++ b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/startHiveserver2Interactive.sh.j2 @@ -0,0 +1,24 @@ +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +HIVE_SERVER2_INTERACTIVE_OPTS=" -hiveconf hive.log.file=hiveserver2Interactive.log -hiveconf hive.log.dir=$5" +HIVE_INTERACTIVE_CONF_DIR=$4 {{hive_interactive_bin}}/hiveserver2 -hiveconf hive.metastore.uris=" " ${HIVE_SERVER2_INTERACTIVE_OPTS} > $1 2> $2 & +echo $!|cat>$3 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/80b87400/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/templeton_smoke.pig.j2 ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/templeton_smoke.pig.j2 b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/templeton_smoke.pig.j2 new file mode 100644 index 0000000..3153e81 --- /dev/null +++ b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/templeton_smoke.pig.j2 @@ -0,0 +1,24 @@ +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# + +A = load '{{templeton_test_input}}' using PigStorage(':'); +B = foreach A generate \$0 as id; +store B into '{{templeton_test_output}}'; \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/80b87400/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/zkmigrator_jaas.conf.j2 ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/zkmigrator_jaas.conf.j2 b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/zkmigrator_jaas.conf.j2 new file mode 100644 index 0000000..e7adfd3 --- /dev/null +++ b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/package/templates/zkmigrator_jaas.conf.j2 @@ -0,0 +1,26 @@ +{# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#} + +Client { + com.sun.security.auth.module.Krb5LoginModule required + useKeyTab=true + storeKey=true + useTicketCache=false + keyTab="{{hive_keytab}}" + principal="{{hive_principal}}"; +}; \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/80b87400/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/quicklinks/quicklinks.json ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/quicklinks/quicklinks.json b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/quicklinks/quicklinks.json new file mode 100644 index 0000000..f276a89 --- /dev/null +++ b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/quicklinks/quicklinks.json @@ -0,0 +1,62 @@ +{ + "name": "default", + "description": "default quick links configuration", + "configuration": { + "protocol": { + "type":"HTTP_ONLY" + }, + + "links": [ + { + "name": "metrics_ui_server", + "label": "Hive Dashboard (Grafana)", + "requires_user_name": "false", + "component_name": "METRICS_GRAFANA", + "url":"%@://%@:%@", + "port": { + "http_property": "port", + "http_default_port": "3000", + "https_property": "port", + "https_default_port": "3000", + "regex": "^(\\d+)$", + "site": "ams-grafana-ini" + }, + "protocol":{ + "type":"https", + "checks":[ + { + "property":"protocol", + "desired":"https", + "site":"ams-grafana-ini" + } + ] + } + }, + { + "name": "hiveserver2_ui", + "label": "HiveServer2 Interactive UI", + "requires_user_name": "false", + "component_name": "HIVE_SERVER_INTERACTIVE", + "url": "%@://%@:%@/llap.html", + "port":{ + "http_property": "hive.server2.webui.port", + "http_default_port": "10502", + "https_property": "hive.server2.webui.port", + "https_default_port": "10502", + "regex": "\\w*:(\\d+)", + "site": "hive-interactive-site" + }, + "protocol":{ + "type":"https", + "checks":[ + { + "property":"hive.server2.webui.use.ssl", + "desired":"true", + "site":"hive-interactive-site" + } + ] + } + } + ] + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/80b87400/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/themes/theme.json ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/themes/theme.json b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/themes/theme.json new file mode 100644 index 0000000..ce440b9 --- /dev/null +++ b/ambari-server/src/main/resources/common-services/HIVE/2.1.0.3.0/themes/theme.json @@ -0,0 +1,753 @@ +{ + "name": "default", + "description": "Default theme for HIVE service", + "configuration": { + "layouts": [ + { + "name": "default", + "tabs": [ + { + "name": "settings", + "display-name": "Settings", + "layout": { + "tab-rows": 6, + "tab-columns": 3, + "sections": [ + { + "name": "acid-transactions", + "display-name": "ACID Transactions", + "row-index": "0", + "column-index": "0", + "row-span": "1", + "column-span": "1", + "section-columns": "1", + "section-rows": "1", + "subsections": [ + { + "name": "acid-transactions-row1-col1-1", + "row-index": "0", + "column-index": "0", + "row-span": "1", + "column-span": "1" + } + ] + }, + { + "name": "misc-settings", + "display-name": "Miscellaneous Settings", + "row-index": "2", + "column-index": "0", + "row-span": "1", + "column-span": "3", + "section-columns": "3", + "section-rows": "2", + "subsections": [ + { + "name": "misc-row1-col1", + "display-name": "Log Level", + "row-index": "0", + "column-index": "0", + "row-span": "1", + "column-span": "1" + } + ] + }, + { + "name": "interactive-query", + "display-name": "Interactive Query", + "row-index": "0", + "column-index": "1", + "row-span": "1", + "column-span": "1", + "section-columns": "1", + "section-rows": "1", + "subsections": [ + { + "name": "interactive-query-row1-col1", + "row-index": "0", + "column-index": "0", + "row-span": "1", + "column-span": "1" + } + ] + }, + { + "name": "security", + "display-name": "Security", + "row-index": "0", + "column-index": "2", + "row-span": "1", + "column-span": "1", + "section-columns": "1", + "section-rows": "1", + "subsections": [ + { + "name": "security-row1-col1", + "row-index": "0", + "column-index": "0", + "row-span": "1", + "column-span": "1" + } + ] + }, + { + "name": "optimization", + "display-name": "Optimization", + "row-index": "1", + "column-index": "0", + "row-span": "1", + "column-span": "3", + "section-columns": "3", + "section-rows": "2", + "subsections": [ + { + "name": "optimization-row1-col1", + "display-name": "Tez", + "row-index": "0", + "column-index": "0", + "row-span": "1", + "column-span": "1" + }, + { + "name": "optimization-row1-col2", + "display-name": "", + "row-index": "0", + "column-index": "1", + "row-span": "1", + "column-span": "1" + }, + { + "name": "optimization-row1-col3", + "display-name": "CBO", + "row-index": "0", + "column-index": "2", + "row-span": "1", + "column-span": "1" + }, + { + "name": "optimization-row2-col1", + "display-name": "Storage", + "row-index": "1", + "column-index": "0", + "row-span": "1", + "column-span": "1" + }, + { + "name": "optimization-row2-col2", + "display-name": "", + "row-index": "1", + "column-index": "1", + "row-span": "1", + "column-span": "1" + }, + { + "name": "optimization-row2-col3", + "display-name": "Memory", + "row-index": "1", + "column-index": "2", + "row-span": "1", + "column-span": "1" + } + ] + } + ] + } + }, + { + "name": "hive-database", + "display-name": "Database", + "layout": { + "tab-rows": 1, + "tab-columns": 1, + "sections": [ + { + "name": "hive-database-configurations", + "display-name": "Database Configurations", + "row-index": "0", + "column-index": "0", + "row-span": "0", + "column-span": "0", + "section-columns": "2", + "section-rows": "1", + "subsections": [ + { + "name": "hive-database-configurations-col-1", + "row-index": "0", + "column-index": "0", + "row-span": "1", + "column-span": "1" + }, + { + "name": "hive-database-configurations-col-2", + "row-index": "0", + "column-index": "1", + "row-span": "1", + "column-span": "1" + } + ] + } + ] + } + } + ] + } + ], + "placement": { + "configuration-layout": "default", + "configs": [ + { + "config": "hive-site/hive.exec.orc.default.stripe.size", + "subsection-name": "optimization-row2-col1" + }, + { + "config": "hive-site/hive.exec.orc.default.compress", + "subsection-name": "optimization-row2-col1" + }, + { + "config": "hive-env/hive_exec_orc_storage_strategy", + "subsection-name": "optimization-row2-col1" + }, + { + "config": "hive-env/hive.heapsize", + "subsection-name": "optimization-row2-col2" + }, + { + "config": "hive-env/hive.metastore.heapsize", + "subsection-name": "optimization-row2-col2" + }, + { + "config": "hive-env/hive.client.heapsize", + "subsection-name": "optimization-row2-col2" + }, + { + "config": "hive-site/hive.auto.convert.join.noconditionaltask.size", + "subsection-name": "optimization-row2-col3" + }, + { + "config": "hive-site/hive.exec.reducers.bytes.per.reducer", + "subsection-name": "optimization-row2-col3" + }, + { + "config": "hive-env/hive_txn_acid", + "subsection-name": "acid-transactions-row1-col1-1" + }, + { + "config": "hive-site/hive.compactor.initiator.on", + "subsection-name": "acid-transactions-row1-col1-1" + }, + { + "config": "hive-site/hive.compactor.worker.threads", + "subsection-name": "acid-transactions-row1-col1-1" + }, + { + "config": "hive-site/hive.execution.engine", + "subsection-name": "optimization-row1-col1" + }, + { + "config": "hive-site/hive.tez.container.size", + "subsection-name": "optimization-row1-col1" + }, + { + "config": "hive-site/hive.prewarm.enabled", + "subsection-name": "optimization-row1-col2" + }, + { + "config": "hive-site/hive.prewarm.numcontainers", + "subsection-name": "optimization-row1-col2" + }, + { + "config": "hive-site/hive.cbo.enable", + "subsection-name": "optimization-row1-col3" + }, + { + "config": "hive-site/hive.stats.fetch.column.stats", + "subsection-name": "optimization-row1-col3" + }, + { + "config": "hive-env/hive_security_authorization", + "subsection-name": "security-row1-col1" + }, + { + "config": "hive-site/hive.server2.enable.doAs", + "subsection-name": "security-row1-col1" + }, + { + "config": "hive-site/hive.server2.authentication", + "subsection-name": "security-row1-col1" + }, + { + "config": "hive-site/hive.server2.use.SSL", + "subsection-name": "security-row1-col1" + }, + { + "config": "hive-env/hive_database", + "subsection-name": "hive-database-configurations-col-1" + }, + { + "config": "hive-site/ambari.hive.db.schema.name", + "subsection-name": "hive-database-configurations-col-1" + }, + { + "config": "hive-site/javax.jdo.option.ConnectionUserName", + "subsection-name": "hive-database-configurations-col-1" + }, + { + "config": "hive-site/javax.jdo.option.ConnectionURL", + "subsection-name": "hive-database-configurations-col-1" + }, + { + "config": "hive-env/hive_database_type", + "subsection-name": "hive-database-configurations-col-2" + }, + { + "config": "hive-site/javax.jdo.option.ConnectionDriverName", + "subsection-name": "hive-database-configurations-col-2" + }, + { + "config": "hive-site/javax.jdo.option.ConnectionPassword", + "subsection-name": "hive-database-configurations-col-2" + }, + { + "config": "hive-interactive-env/enable_hive_interactive", + "subsection-name": "interactive-query-row1-col1" + }, + { + "config": "hive-interactive-site/hive.llap.daemon.queue.name", + "subsection-name": "interactive-query-row1-col1", + "depends-on": [ + { + "configs":[ + "hive-interactive-env/enable_hive_interactive" + ], + "if": "${hive-interactive-env/enable_hive_interactive}", + "then": { + "property_value_attributes": { + "visible": true + } + }, + "else": { + "property_value_attributes": { + "visible": false + } + } + } + ] + }, + { + "config": "hive-interactive-env/num_llap_nodes", + "subsection-name": "interactive-query-row1-col1", + "depends-on": [ + { + "configs":[ + "hive-interactive-env/enable_hive_interactive" + ], + "if": "${hive-interactive-env/enable_hive_interactive}", + "then": { + "property_value_attributes": { + "visible": true + } + }, + "else": { + "property_value_attributes": { + "visible": false + } + } + } + ] + }, + { + "config": "hive-interactive-site/hive.server2.tez.sessions.per.default.queue", + "subsection-name": "interactive-query-row1-col1", + "depends-on": [ + { + "configs":[ + "hive-interactive-env/enable_hive_interactive" + ], + "if": "${hive-interactive-env/enable_hive_interactive}", + "then": { + "property_value_attributes": { + "visible": true + } + }, + "else": { + "property_value_attributes": { + "visible": false + } + } + } + ] + }, + { + "config": "hive-interactive-site/ambari.copy.hive.llap.daemon.yarn.container.mb", + "subsection-name": "interactive-query-row1-col1", + "property_value_attributes": { + "ui_only_property": true, + "copy": "hive-interactive-site/hive.llap.daemon.yarn.container.mb" + }, + "depends-on": [ + { + "configs":[ + "hive-interactive-env/enable_hive_interactive" + ], + "if": "${hive-interactive-env/enable_hive_interactive}", + "then": { + "property_value_attributes": { + "visible": true + } + }, + "else": { + "property_value_attributes": { + "visible": false + } + } + } + ] + }, + { + "config": "hive-interactive-site/ambari.copy.hive.llap.io.memory.size", + "subsection-name": "interactive-query-row1-col1", + "property_value_attributes": { + "ui_only_property": true, + "copy": "hive-interactive-site/hive.llap.io.memory.size" + }, + "depends-on": [ + { + "configs":[ + "hive-interactive-env/enable_hive_interactive" + ], + "if": "${hive-interactive-env/enable_hive_interactive}", + "then": { + "property_value_attributes": { + "visible": true + } + }, + "else": { + "property_value_attributes": { + "visible": false + } + } + } + ] + }, + { + "config": "hive-interactive-site/ambari.copy.hive.llap.daemon.num.executors", + "subsection-name": "interactive-query-row1-col1", + "property_value_attributes": { + "ui_only_property": true, + "copy": "hive-interactive-site/hive.llap.daemon.num.executors" + }, + "depends-on": [ + { + "configs":[ + "hive-interactive-env/enable_hive_interactive" + ], + "if": "${hive-interactive-env/enable_hive_interactive}", + "then": { + "property_value_attributes": { + "visible": true + } + }, + "else": { + "property_value_attributes": { + "visible": false + } + } + } + ] + }, + { + "config": "hive-env/hive.log.level", + "subsection-name": "misc-row1-col1" + } + ] + }, + "widgets": [ + { + "config": "hive-site/hive.exec.orc.default.stripe.size", + "widget": { + "type": "slider", + "units": [ + { + "unit-name": "MB" + } + ] + } + }, + { + "config": "hive-site/hive.exec.orc.default.compress", + "widget": { + "type": "combo" + } + }, + { + "config": "hive-env/hive_exec_orc_storage_strategy", + "widget": { + "type": "toggle" + } + }, + { + "config": "hive-env/hive.heapsize", + "widget": { + "type": "slider", + "units": [ + { + "unit-name": "MB" + } + ] + } + }, + { + "config": "hive-env/hive.metastore.heapsize", + "widget": { + "type": "slider", + "units": [ + { + "unit-name": "MB" + } + ] + } + }, + { + "config": "hive-env/hive.client.heapsize", + "widget": { + "type": "slider", + "units": [ + { + "unit-name": "MB" + } + ] + } + }, + { + "config": "hive-site/hive.auto.convert.join.noconditionaltask.size", + "widget": { + "type": "slider", + "units": [ + { + "unit-name": "MB" + } + ] + } + }, + { + "config": "hive-site/hive.exec.reducers.bytes.per.reducer", + "widget": { + "type": "slider", + "units": [ + { + "unit-name": "MB" + } + ] + } + }, + { + "config": "hive-env/hive_txn_acid", + "widget": { + "type": "toggle" + } + }, + { + "config": "hive-site/hive.compactor.initiator.on", + "widget": { + "type": "toggle" + } + }, + { + "config": "hive-site/hive.compactor.worker.threads", + "widget": { + "type": "slider", + "units": [ + { + "unit-name": "int" + } + ] + } + }, + { + "config": "hive-site/hive.execution.engine", + "widget": { + "type": "combo" + } + }, + { + "config": "hive-site/hive.tez.container.size", + "widget": { + "type": "slider", + "units": [ + { + "unit-name": "MB" + } + ] + } + }, + { + "config": "hive-site/hive.prewarm.enabled", + "widget": { + "type": "toggle" + } + }, + { + "config": "hive-site/hive.prewarm.numcontainers", + "widget": { + "type": "slider", + "units": [ + { + "unit-name": "int" + } + ] + } + }, + { + "config": "hive-site/hive.cbo.enable", + "widget": { + "type": "toggle" + } + }, + { + "config": "hive-site/hive.stats.fetch.column.stats", + "widget": { + "type": "toggle" + } + }, + { + "config": "hive-site/hive.server2.enable.doAs", + "widget": { + "type": "toggle" + } + }, + { + "config": "hive-env/hive_security_authorization", + "widget": { + "type": "combo" + } + }, + { + "config": "hive-site/hive.server2.authentication", + "widget": { + "type": "combo" + } + }, + { + "config": "hive-site/hive.server2.use.SSL", + "widget": { + "type": "toggle" + } + }, + { + "config": "hive-env/hive_database", + "widget": { + "type": "combo" + } + }, + { + "config": "hive-site/javax.jdo.option.ConnectionUserName", + "widget": { + "type": "text-field" + } + }, + { + "config": "hive-site/javax.jdo.option.ConnectionPassword", + "widget": { + "type": "password" + } + }, + { + "config": "hive-site/javax.jdo.option.ConnectionDriverName", + "widget": { + "type": "text-field" + } + }, + { + "config": "hive-site/javax.jdo.option.ConnectionURL", + "widget": { + "type": "text-field" + } + }, + { + "config": "hive-site/ambari.hive.db.schema.name", + "widget": { + "type": "text-field" + } + }, + { + "config": "hive-env/hive_database_type", + "widget": { + "type": "text-field" + } + }, + { + "config": "hive-interactive-env/enable_hive_interactive", + "widget": { + "type": "toggle" + } + }, + { + "config": "hive-interactive-site/hive.llap.daemon.queue.name", + "widget": { + "type": "combo" + } + }, + { + "config": "hive-interactive-env/num_llap_nodes", + "widget": { + "type": "slider", + "units": [ + { + "unit-name": "int" + } + ] + } + }, + { + "config": "hive-interactive-site/ambari.copy.hive.llap.daemon.yarn.container.mb", + "widget": { + "type": "label", + "units": [ + { + "unit-name": "MB" + } + ] + } + }, + { + "config": "hive-interactive-site/ambari.copy.hive.llap.io.memory.size", + "widget": { + "type": "label", + "units": [ + { + "unit-name": "MB" + } + ] + } + }, + { + "config": "hive-interactive-site/ambari.copy.hive.llap.daemon.num.executors", + "widget": { + "type": "label", + "units": [ + { + "unit-name": "int" + } + ] + } + }, + { + "config": "hive-interactive-site/hive.server2.tez.sessions.per.default.queue", + "widget": { + "type": "slider", + "units": [ + { + "unit-name": "int" + } + ] + } + }, + { + "config": "hive-env/hive.log.level", + "widget": { + "type": "combo" + } + } + ] + } +} http://git-wip-us.apache.org/repos/asf/ambari/blob/80b87400/ambari-server/src/main/resources/stacks/HDP/3.0/services/HIVE/metainfo.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/3.0/services/HIVE/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/3.0/services/HIVE/metainfo.xml new file mode 100644 index 0000000..f815c8e --- /dev/null +++ b/ambari-server/src/main/resources/stacks/HDP/3.0/services/HIVE/metainfo.xml @@ -0,0 +1,27 @@ +<?xml version="1.0"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<metainfo> + <schemaVersion>2.0</schemaVersion> + <services> + <service> + <name>HIVE</name> + <version>2.1.0.3.0</version> + <extends>common-services/HIVE/2.1.0.3.0</extends> + </service> + </services> +</metainfo>
