[ 
https://issues.apache.org/jira/browse/TRAFODION-3026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16505738#comment-16505738
 ] 

ASF GitHub Bot commented on TRAFODION-3026:
-------------------------------------------

Github user prashanth-vasudev commented on a diff in the pull request:

    https://github.com/apache/trafodion/pull/1532#discussion_r193960465
  
    --- Diff: core/sql/src/main/java/org/trafodion/sql/HBaseClient.java ---
    @@ -538,7 +564,21 @@ public boolean createk(String tblName, Object[] 
tableOptions,
                          admin.createTable(desc);
                       }
                    }
    -            admin.close();
    +
    +            if(setDescRet!= null)
    +            {
    +              if(setDescRet.storagePolicyChanged())
    +              {
    +                 Object tableOptionsStoragePolicy[] = new 
Object[HBASE_HDFS_STORAGE_POLICY+1];
    +                 for(int i=0; i<HBASE_HDFS_STORAGE_POLICY; i++)
    +                   tableOptionsStoragePolicy[i]="";
    +                 
tableOptionsStoragePolicy[HBASE_HDFS_STORAGE_POLICY]=(String)setDescRet.storagePolicy_
 ;
    +                 tableOptionsStoragePolicy[HBASE_NAME]=(String)tblName;
    +                 alter(tblName,tableOptionsStoragePolicy,transID);
    --- End diff --
    
    Thanks for the responses.  Please verify if transactional alter side of the 
code is functioning. We can enhance the alter in steps.   Thank you.


> add create option storage policy
> --------------------------------
>
>                 Key: TRAFODION-3026
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-3026
>             Project: Apache Trafodion
>          Issue Type: New Feature
>            Reporter: liu ming
>            Assignee: liu ming
>            Priority: Major
>
> HDFS support HSM, it is possible to specify the storage policy in HBase 
> column family attribute, so it can use the underlying storage policy



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to