You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2012/06/21 22:43:15 UTC

svn commit: r1352675 - in /incubator/ambari/trunk/hmc/db: hdp_upgrade_to_1.0.1.php schema.dump

Author: yusaku
Date: Thu Jun 21 20:43:14 2012
New Revision: 1352675

URL: http://svn.apache.org/viewvc?rev=1352675&view=rev
Log:
AMBARI-571. Hive Server text should be replaced with Hive Metastore (Contributed by Jaimin Jetly)

Added:
    incubator/ambari/trunk/hmc/db/hdp_upgrade_to_1.0.1.php
Modified:
    incubator/ambari/trunk/hmc/db/schema.dump

Added: incubator/ambari/trunk/hmc/db/hdp_upgrade_to_1.0.1.php
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/hmc/db/hdp_upgrade_to_1.0.1.php?rev=1352675&view=auto
==============================================================================
--- incubator/ambari/trunk/hmc/db/hdp_upgrade_to_1.0.1.php (added)
+++ incubator/ambari/trunk/hmc/db/hdp_upgrade_to_1.0.1.php Thu Jun 21 20:43:14 2012
@@ -0,0 +1,23 @@
+<?php
+# 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.
+
+//The script takes the first argument as the path of sqlite database
+
+$db = new PDO("sqlite:".$argv[1]);
+$query = "UPDATE ServiceComponents SET display_name = 'Hive Metastore' WHERE service_name = 'HIVE' AND component_name = 'HIVE_SERVER'"; 
+$db->exec($query) or die(print_r($db->errorInfo(), true));
+?>
+

Modified: incubator/ambari/trunk/hmc/db/schema.dump
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/hmc/db/schema.dump?rev=1352675&r1=1352674&r2=1352675&view=diff
==============================================================================
--- incubator/ambari/trunk/hmc/db/schema.dump (original)
+++ incubator/ambari/trunk/hmc/db/schema.dump Thu Jun 21 20:43:14 2012
@@ -111,7 +111,7 @@ INSERT OR REPLACE INTO "ServiceComponent
 INSERT OR REPLACE INTO "ServiceComponents" ( service_name, component_name, display_name, attributes, description ) VALUES
   ( "HIVE", "HIVE_MYSQL", "MySql Server for Hive", '{ "isMaster": false, "isClient": false }', "" );
 INSERT OR REPLACE INTO "ServiceComponents" ( service_name, component_name, display_name, attributes, description ) VALUES
-  ( "HIVE", "HIVE_SERVER", "Hive Server", '{ "isMaster": true, "isClient": false }', "" );
+  ( "HIVE", "HIVE_SERVER", "Hive Metastore", '{ "isMaster": true, "isClient": false }', "" );
 INSERT OR REPLACE INTO "ServiceComponents" ( service_name, component_name, display_name, attributes, description ) VALUES
   ( "HIVE", "HIVE_CLIENT", "Hive Client", '{ "isMaster": false, "isClient": true }', "" );
 INSERT OR REPLACE INTO "ServiceComponents" ( service_name, component_name, display_name, attributes, description ) VALUES