Changes between Version 5 and Version 6 of NCHCCloudCourse100929_4_HBEX


Ignore:
Timestamp:
Sep 28, 2010, 6:47:03 PM (14 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NCHCCloudCourse100929_4_HBEX

    v5 v6  
    1010[wiki:NCHCCloudCourse100928 回課程大綱 << ] 第一關 [wiki:NCHCCloudCourse100929_4_HBEX2 > 下一關 ]
    1111
     12= 注意 =
     13
     14 * 若編譯以下範例的環境為console 端,請設定完整的classpath
     15 * 若開發是透過 eclipse ,請將 hbase-core.jar , zookeeper*.jar , hbase-*-transactional.jar 匯入到 project library 中
     16 * 注意: 若此程式執行於 eclipse ,則方便起見,請將程式的 eclipse only 的後兩行的註解取消,如:
     17{{{
     18#!java
     19    // eclipse only
     20          String[] args = {"ex1Table","Detail"};
     21          argv = args;
     22}}}
     23
    1224= 範例一:新增Table =
    1325
    14  * 看懂以下程式碼,並成功執行它
    1526
    1627= !CreateTable.java =
     
    4859      System.out.println("Table: " + tablename + "Existed.");
    4960    } else {
    50       System.out.println("create new table: " + tablename);
    5161
    5262      // 建立
    5363      admin.createTable(htd);
     64
     65      //
     66      System.out.println( tablename + " created.");
    5467    }
    5568  }
     
    5770  static public void main(String argv[]) throws IOException {
    5871    // eclipse only
    59 //        String[] args = {"tsmc","Detail"};
     72//        String[] args = {"ex1Table","Detail"};
    6073//        argv = args;
    6174
     
    7689}
    7790
     91
    7892}}}
    7993