blob: 4c723265815dcfcbf33f73ae95668e148a0609dc [file] [log] [blame]
#
#
# 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.
#
#
class hdp-hive::params() inherits hdp::params
{
#TODO: will move to globals
$hive_metastore_user_name = hdp_default("hadoop/hive-site/hive_metastore_user_name","dbusername")
$hive_metastore_user_passwd = hdp_default("hadoop/hive-site/hive_metastore_user_passwd","dbpassword")
### users
$hive_user = $hdp::params::hive_user
### common
$hive_metastore_port = hdp_default("hive_metastore_port",9083)
$hive_lib = hdp_default("hive_lib","/usr/lib/hive/lib/") #TODO: should I remove and just use hive_dbroot
### hive-env
$hive_conf_dir = $hdp::params::hive_conf_dir
$hive_dbroot = hdp_default("hadoop/hive-env/hive_dbroot",$hive_lib)
$hive_log_dir = hdp_default("hadoop/hive-env/hive_log_dir","/var/log/hive")
$hive_pid_dir = hdp_default("hadoop/hive-env/hive_pid_dir","/var/run/hive")
### hive-site
$hive_database_name = hdp_default("hadoop/hive-site/hive_database_name","hive")
$hive_metastore_principal = hdp_default("hadoop/hive-site/hive_metastore_principal")
$hive_metastore_sasl_enabled = hdp_default("hadoop/hive-site/hive_metastore_sasl_enabled","false")
#TODO: using instead hive_server_host in hdp::params $hive_metastore_server_host = hdp_default("hadoop/hive-site/hive_metastore_server_host")
$keytab_path = hdp_default("hadoop/hive-site/keytab_path")
###mysql connector
$download_url = $hdp::params::gpl_artifacts_download_url
$mysql_connector_url = "${download_url}/mysql-connector-java-5.1.18.zip"
$hive_aux_jars_path = hdp_default("hive_aux_jars_path","/usr/lib/hcatalog/share/hcatalog/hcatalog-0.4.0.15.jar")
}