metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ottobackwards <...@git.apache.org>
Subject [GitHub] metron pull request #901: METRON-1410 Check for existing HBASE tables before...
Date Thu, 25 Jan 2018 15:07:50 GMT
Github user ottobackwards commented on a diff in the pull request:

    https://github.com/apache/metron/pull/901#discussion_r163868868
  
    --- Diff: metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/enrichment_commands.py
---
    @@ -190,7 +190,7 @@ def create_hbase_tables(self):
                       self.__params.hbase_principal_name,
                       execute_user=self.__params.hbase_user)
     
    -        cmd = "echo \"create '{0}','{1}'\" | hbase shell -n"
    +        cmd = "if [[ $(echo \"exists '{0}'\" | hbase shell | grep 'not exist') ]]; then
echo \"create '{0}','{1}'\" | hbase shell -n; fi"
    --- End diff --
    
    done



---

Mime
View raw message