virgil:透過REST訪問Cassandra的開源框架
hmsonline/virgil是一個Cassandra服務層,目標是透過REST訪問基於Cassandra的Hadoop。提供了基於瀏覽器進行資料檢查,對於主要的Cassandra功能提供REST介面。
如下:
Create Keyspace (playground)
curl -X PUT http://localhost:8080/virgil/data/playground/
Create Column Family (toys)
curl -X PUT http://localhost:8080/virgil/data/playground/toys/
Set a Row (rowkey = "swingset", columns [ foo:1, bar:22 ])
curl -X PUT http://localhost:8080/virgil/data/playground/toys/swingset -d "{\"foo\":\"1\",\"bar\":\"33\"}"
Update a Row (rowkey = "swingset", columns [ foo:1, bar:22 ])
Updates columns with new values or adds columns if they don't exist.
curl -X PATCH http://localhost:8080/virgil/data/playground/toys/swingset -d "{\"foo\":\"3\",\"erg\":\"42\"}"
Fetch Row (rowkey = "swingset")
curl -X GET http://localhost:8080/virgil/data/playground/toys/swingset/
Insert Column (rowkey = "swingset", columns [ snaf:lisa ])
curl -X PUT http://localhost:8080/virgil/data/playground/toys/swingset/snaf -d "lisa"
Delete Column (rowkey = "swingset")
curl -X DELETE http://localhost:8080/virgil/data/playground/toys/swingset/snaf
Delete Row
curl -X DELETE http://localhost:8080/virgil/data/playground/toys/swingset/
Delete Column Family
curl -X DELETE http://localhost:8080/virgil/data/playground/toys/
Delete Keyspace
curl -X DELETE http://localhost:8080/virgil/data/playground/
如下:
Create Keyspace (playground)
curl -X PUT http://localhost:8080/virgil/data/playground/
Create Column Family (toys)
curl -X PUT http://localhost:8080/virgil/data/playground/toys/
Set a Row (rowkey = "swingset", columns [ foo:1, bar:22 ])
curl -X PUT http://localhost:8080/virgil/data/playground/toys/swingset -d "{\"foo\":\"1\",\"bar\":\"33\"}"
Update a Row (rowkey = "swingset", columns [ foo:1, bar:22 ])
Updates columns with new values or adds columns if they don't exist.
curl -X PATCH http://localhost:8080/virgil/data/playground/toys/swingset -d "{\"foo\":\"3\",\"erg\":\"42\"}"
Fetch Row (rowkey = "swingset")
curl -X GET http://localhost:8080/virgil/data/playground/toys/swingset/
Insert Column (rowkey = "swingset", columns [ snaf:lisa ])
curl -X PUT http://localhost:8080/virgil/data/playground/toys/swingset/snaf -d "lisa"
Delete Column (rowkey = "swingset")
curl -X DELETE http://localhost:8080/virgil/data/playground/toys/swingset/snaf
Delete Row
curl -X DELETE http://localhost:8080/virgil/data/playground/toys/swingset/
Delete Column Family
curl -X DELETE http://localhost:8080/virgil/data/playground/toys/
Delete Keyspace
curl -X DELETE http://localhost:8080/virgil/data/playground/
[該貼被banq於2013-11-27 14:48修改過]
相關文章
- 透過API訪問HDFSAPI
- vnc viewer透過外網訪問,vnc viewer透過外網訪問8個步驟VNCView
- 透過API訪問IE Cache (轉)API
- svn透過https協議訪問的搭建過程HTTP協議
- docker 中容器透過 API 互相訪問DockerAPI
- 透過socket訪問資料庫(轉)資料庫
- windows透過samba訪問aix的共享目錄WindowsSambaAI
- 搭建開源java部落格並通過域名訪問Java
- 如何透過閱讀原始碼來學習優秀開源框架原始碼框架
- Oracle 透過透明閘道器 訪問 mysqlOracleMySql
- Oracle/MySQL透過odbc訪問PostgreSQL for LightDBOracleMySql
- 透過自定義域名 + SSL 的方式訪問 Amazon MQ for RabbitMQMQ
- 透過Kerberos認證訪問Oracle11gROSOracle
- oracle透過透明閘道器訪問sql serverOracleSQLServer
- 阿里巴巴開源的通用快取訪問框架JetCache介紹阿里快取框架
- itm6中透過防火牆訪問tep browser問題防火牆
- 如何透過holer從外網訪問本地的資料庫?資料庫
- 如何讓NAS可以透過網際網路訪問?
- 如何透過DDNS 更快地訪問鐵威馬NAS?DNS
- 直接透過ODBC API訪問SQL資料庫 (轉)APISQL資料庫
- Toro - 基於PHP的REST開發框架PHPREST框架
- 怎樣透過holer從外網訪問本地網站?網站
- 如何透過holer從外網訪問本地Web應用Web
- 新版本下如何透過外部網路訪問wsl
- 透過SQLNET.ora檔案限制Ip地址訪問SQL
- [Linux Mint]無法透過ssh和xrdp訪問本地Linux
- 透過訪問URL地址,5分鐘內滲透你的網站!很刑很可拷!網站
- windows如何訪問ubuntu的指定目錄(透過samba檔案共享服WindowsUbuntuSamba
- Oracle 11.2.0.4 透過透明閘道器訪問mysql 8.0.16OracleMySql
- WebHDFS :通過Web訪問Hadoop分散式檔案系統 (HDFS)的開源工具WebHadoop分散式開源工具
- 怎樣透過乙太網遠端訪問PLC 較簡單的方法
- Windows10系統透過Qos提高網速加快訪問速度的方法Windows
- [開源] .Net ORM 訪問 Firebird 資料庫ORM資料庫
- 如何在BPM中使用REST服務(1):通過程式訪問網頁內容REST網頁
- 關於Linux下配置OEM無法透過IE瀏覽器訪問的問題Linux瀏覽器
- 區域網電腦只能透過//IP地址訪問怎麼辦
- 怎樣在squid中透過URL進行訪問控制(轉)UI
- kubernetes使用http rest api訪問叢集之使用postman工具訪問 apiserverHTTPRESTAPIPostmanServer