WebHCat Reference - GetProperties

WebHCat Reference - GetProperties

GET ddl/database/:db/table/:table/property 엔드포인트는 HCatalog 테이블의 모든 속성(property)을 나열하는 WebHCat REST API예요.

출처: 문서

본문

URL

http://www.myserver.com/templeton/v1/ddl/database/:db/table/:table/property

Parameters

Name Description Required? Default
:db 데이터베이스 이름 Required None
:table 테이블 이름 Required None

표준 파라미터(standard parameters)도 지원돼요.

Results

Name Description
properties 테이블 속성 목록 (name: value 쌍)
database 데이터베이스 이름
table 테이블 이름

Example Curl Command

% curl -s 'http://localhost:50111/templeton/v1/ddl/database/default/table/test_table/property?user.name=ctdean'

JSON Output

{
 "properties": {
   "fruit": "apple",
   "last_modified_by": "ctdean",
   "hcat.osd": "org.apache.hcatalog.rcfile.RCFileOutputDriver",
   "color": "blue",
   "last_modified_time": "1331620706",
   "hcat.isd": "org.apache.hcatalog.rcfile.RCFileInputDriver",
   "transient_lastDdlTime": "1331620706",
   "comment": "Best table made today",
   "country": "Albania"
 },
 "table": "test_table",
 "database": "default"
}

Navigation Links

  • Previous: PUT ddl/database/:db/table/:table/column/:column
  • Next: GET ddl/database/:db/table/:table/property/:property

더 알아보기 (Learn more)

테이블 속성은 메타데이터를 name: value 쌍으로 저장한 것이에요. 특정 속성 하나만 조회·설정할 때는 각각 GET/PUT .../property/:property 엔드포인트를 사용하면 됩니다.