diff options
author | Roman Shaposhnik <rvs@cloudera.com> | 2013-03-11 10:33:21 -0700 |
---|---|---|
committer | Roman Shaposhnik <rvs@cloudera.com> | 2013-03-28 12:30:01 -0700 |
commit | 9eefa5598da3e38f7bb208e40680527326e4257e (patch) | |
tree | b86cb06cf9e46ddfc52e9fc96056b58906f4b6cb /bigtop-deploy/puppet | |
parent | 569554fc5c57e0a8ba19bd0882d27e6980d1f751 (diff) |
BIGTOP-832. Bump version of Hue to 2.2.0
Diffstat (limited to 'bigtop-deploy/puppet')
-rw-r--r-- | bigtop-deploy/puppet/manifests/cluster.pp | 6 | ||||
-rw-r--r-- | bigtop-deploy/puppet/modules/hue/manifests/init.pp | 2 | ||||
-rw-r--r-- | bigtop-deploy/puppet/modules/hue/templates/hue.ini | 96 |
3 files changed, 84 insertions, 20 deletions
diff --git a/bigtop-deploy/puppet/manifests/cluster.pp b/bigtop-deploy/puppet/manifests/cluster.pp index 6675863b..041a37aa 100644 --- a/bigtop-deploy/puppet/manifests/cluster.pp +++ b/bigtop-deploy/puppet/manifests/cluster.pp @@ -78,6 +78,9 @@ class hadoop_cluster_node { $hadoop_oozie_url = "http://${hadoop_head_node}:11000/oozie" $hadoop_httpfs_url = "http://${hadoop_head_node}:14000/webhdfs/v1" + $hadoop_rm_url = "http://${hadoop_head_node}:8088" + $hadoop_rm_proxy_url = "http://${hadoop_head_node}:8088" + $hadoop_history_server_url = "http://${hadoop_head_node}:19888" $solrcloud_collections = ["collection1"] $solrcloud_port = "1978" @@ -211,6 +214,9 @@ class hadoop_head_node inherits hadoop_cluster_node { } hue::server { "hue server": + rm_url => $hadoop_rm_url, + rm_proxy_url => $hadoop_rm_proxy_url, + history_server_url => $hadoop_history_server_url, webhdfs_url => $hadoop_httpfs_url, rm_host => $hadoop_rm_host, rm_port => $hadoop_rm_port, diff --git a/bigtop-deploy/puppet/modules/hue/manifests/init.pp b/bigtop-deploy/puppet/modules/hue/manifests/init.pp index b7fed819..f4a7b570 100644 --- a/bigtop-deploy/puppet/modules/hue/manifests/init.pp +++ b/bigtop-deploy/puppet/modules/hue/manifests/init.pp @@ -14,7 +14,7 @@ # limitations under the License. class hue { - define server($webhdfs_url, $rm_host, $rm_port, $oozie_url, + define server($webhdfs_url, $rm_host, $rm_port, $oozie_url, $rm_url, $rm_proxy_url, $history_server_url, $hue_host = "0.0.0.0", $hue_port = "8888", $default_fs = "hdfs://localhost:8020", $kerberos_realm = "") { if ($kerberos_realm) { diff --git a/bigtop-deploy/puppet/modules/hue/templates/hue.ini b/bigtop-deploy/puppet/modules/hue/templates/hue.ini index 1bc3b1cc..d9fd1618 100644 --- a/bigtop-deploy/puppet/modules/hue/templates/hue.ini +++ b/bigtop-deploy/puppet/modules/hue/templates/hue.ini @@ -17,12 +17,12 @@ # =================================== # # For complete documentation about the contents of this file, run -# $ <hue_root>/build/env/bin/hue config_help +# $ <hue_root>/build/env/bin/hue config_help # # All .ini files under the current directory are treated equally. Their # contents are merged to form the Hue configuration, which can # can be viewed on the Hue at -# http://<hue_host>:<port>/dump_config +# http://<hue_host>:<port>/dump_config ########################################################################### @@ -48,6 +48,12 @@ # Turn off backtrace for server error http_500_debug_mode=0 + # Server email for internal error messages + ## django_server_email='hue@localhost.localdomain' + + # Email backend + ## django_email_backend=django.core.mail.backends.smtp.EmailBackend + # Set to true to use CherryPy as the webserver, set to false # to use Spawning as the webserver. Defaults to Spawning if # key is not specified. @@ -73,6 +79,13 @@ # Default encoding for site data ## default_site_encoding=utf-8 + # Administrators + # ---------------- + [[django_admins]] + ## [[[admin1]]] + ## name=john + ## email=john@doe.com + # UI customizations # ------------------- [[custom]] @@ -91,10 +104,22 @@ # (Default. Relies on Django and user manager, after the first login) # - desktop.auth.backend.LdapBackend # - desktop.auth.backend.PamBackend + # - desktop.auth.backend.SpnegoDjangoBackend + # - desktop.auth.backend.RemoteUserDjangoBackend ## backend=desktop.auth.backend.AllowFirstUserDjangoBackend ## pam_service=login + # When using the desktop.auth.backend.RemoteUserDjangoBackend, this sets + # the normalized name of the header that contains the remote user. + # The HTTP header in the request is converted to a key by converting + # all characters to uppercase, replacing any hyphens with underscores + # and adding an HTTP_ prefix to the name. So, for example, if the header + # is called Remote-User that would be configured as HTTP_REMOTE_USER + # + # Defaults to HTTP_REMOTE_USER + ## remote_user_header=HTTP_REMOTE_USER + # Configuration options for connecting to LDAP and Active Directory # ------------------------------------------------------------------- [[ldap]] @@ -123,6 +148,10 @@ # For use when using LdapBackend for Hue authentication ## ldap_username_pattern="uid=<username>,ou=People,dc=mycompany,dc=com" + # Create users in Hue when they try to login with their LDAP credentials + # For use when using LdapBackend for Hue authentication + ## create_users_on_login = true + [[[users]]] # Base filter for searching for users @@ -149,7 +178,7 @@ engine=sqlite3 name=/var/lib/hue/desktop.db # Database engine is typically one of: - # postgresql, mysql, sqlite3, or oracle + # postgresql_psycopg2, mysql, or sqlite3 # # Note that for sqlite3, 'name', below is a filename; # for other backends, it is the database name. @@ -277,10 +306,19 @@ hadoop_mapred_home=/usr/lib/hadoop-mapreduce # Defaults to $HADOOP_BIN or /usr/bin/hadoop - ## hadoop_bin=/usr/bin/hadoop + hadoop_bin=/usr/bin/hadoop # Defaults to $HADOOP_CONF_DIR or /etc/hadoop/conf - ## hadoop_conf_dir=/etc/hadoop/conf + hadoop_conf_dir=/etc/hadoop/conf + + # URL of the ResourceManager API + resourcemanager_api_url=<%= rm_url %> + + # URL of the ProxyServer API + proxy_api_url=<%= rm_proxy_url %> + + # URL of the HistoryServer API + history_server_api_url=<%= history_server_url %> ########################################################################### @@ -325,13 +363,22 @@ ########################################################################### [beeswax] - # Configure the port the internal metastore daemon runs on. Used only if - # hive.metastore.local is true. - ## beeswax_meta_server_port=8003 - # Configure the port the beeswax thrift server runs on + # Host where Beeswax server Thrift daemon is running. + # If Kerberos security is enabled, the fully-qualified domain name (FQDN) is + # required, even if the Thrift daemon is running on the same host as Hue. + ## beeswax_server_host=<FQDN of Beeswax Server> + + # Port where Beeswax Thrift server runs on. ## beeswax_server_port=8002 + # Host where internal metastore Thrift daemon is running. + ## beeswax_meta_server_host=localhost + + # Configure the port the internal metastore daemon runs on. + # Used only if hive.metastore.local is true. + ## beeswax_meta_server_port=8003 + # Hive home directory ## hive_home_dir=/usr/lib/hive @@ -406,8 +453,8 @@ help = "The command-line Flume client interface." [[[[ environment ]]]] - # You can specify environment variables for the Flume shell - # in this section. + # You can specify environment variables for the Flume shell + # in this section. # Define and configure a new shell type "pig" # ------------------------------------------------------------------------ @@ -417,12 +464,23 @@ help = "The command-line interpreter for Pig" [[[[ environment ]]]] - # You can specify environment variables for the Pig shell - # in this section. Note that JAVA_HOME must be configured - # for the Pig shell to run. + # You can specify environment variables for the Pig shell + # in this section. Note that JAVA_HOME must be configured + # for the Pig shell to run. + + # [[[[[ JAVA_HOME ]]]]] + # value = "/usr/lib/jvm/java-6-sun" - [[[[[ JAVA_HOME ]]]]] - value = "/usr/lib/jvm/java-6-sun" + # Define and configure a new shell type "sqoop2" + # ------------------------------------------------------------------------ + [[[ sqoop2 ]]] + nice_name = "Sqoop2 Shell" + command = "/usr/bin/sqoop2" + help = "The command-line Sqoop2 client." + + [[[[ environment ]]]] + # You can configure environment variables for the Sqoop2 shell + # in this section. # Define and configure a new shell type "hbase" # ------------------------------------------------------------------------ @@ -432,8 +490,8 @@ help = "The command-line HBase client interface." [[[[ environment ]]]] - # You can configure environment variables for the HBase shell - # in this section. + # You can configure environment variables for the HBase shell + # in this section. ########################################################################### @@ -442,4 +500,4 @@ [useradmin] # The name of the default user group that users will be a member of - ## default_user_group=default_group + ## default_user_group=default |