Update trafodion_install

Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/accd1570
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/accd1570
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/accd1570

Branch: refs/heads/master
Commit: accd1570f1c7831eeb35ebbe83787d1147becf0d
Parents: 362aef5
Author: mashengchen <[email protected]>
Authored: Wed Mar 16 00:56:34 2016 +0800
Committer: mashengchen <[email protected]>
Committed: Wed Mar 16 00:56:34 2016 +0800

----------------------------------------------------------------------
 install/installer/trafodion_install | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/accd1570/install/installer/trafodion_install
----------------------------------------------------------------------
diff --git a/install/installer/trafodion_install 
b/install/installer/trafodion_install
index 4bb6649..1d9a43e 100755
--- a/install/installer/trafodion_install
+++ b/install/installer/trafodion_install
@@ -103,11 +103,12 @@ do
                   exit -1
                fi
             else
-               supportedHBase=$(echo $version | grep "1.1.1" | wc -l)
-               if [[ $supportedHBase -eq "0" ]]; then
-                  echo "***ERROR: HBase installed must be 1.1.1 on node $node"
+               supportedHBase=${version:0:3} 
+               if [[ $supportedHBase -ne "1.1" ]]; then
+                  echo "***ERROR: HBase installed must be 1.1.x on node $node"
                   exit -1
                fi
+               
             fi
          else
             supportedHBase=$(echo $version | grep "0.98.4" | wc -l)

Reply via email to