{"id":21268995,"url":"https://github.com/qubole/qds-sdk-r","last_synced_at":"2025-07-11T05:30:44.840Z","repository":{"id":26798212,"uuid":"30256644","full_name":"qubole/qds-sdk-R","owner":"qubole","description":"R extension to execute Hive Commands through Qubole Data Service Python SDK.","archived":false,"fork":false,"pushed_at":"2016-10-26T00:40:47.000Z","size":236,"stargazers_count":4,"open_issues_count":4,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-04-17T22:49:33.986Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://api.qubole.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qubole.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-03T18:00:28.000Z","updated_at":"2019-01-10T19:07:09.000Z","dependencies_parsed_at":"2022-08-31T23:40:34.488Z","dependency_job_id":null,"html_url":"https://github.com/qubole/qds-sdk-R","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qubole%2Fqds-sdk-R","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qubole%2Fqds-sdk-R/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qubole%2Fqds-sdk-R/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qubole%2Fqds-sdk-R/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qubole","download_url":"https://codeload.github.com/qubole/qds-sdk-R/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225693821,"owners_count":17509227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T08:07:00.146Z","updated_at":"2024-11-21T08:07:00.784Z","avatar_url":"https://github.com/qubole.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"qds-sdk-R\n=========\nR wrapper code for launching Hive, Spark, Presto queries using qds-sdk-py.\n\n\nRequires\n--------\n1. [QDS Python SDK](https://github.com/qubole/qds-sdk-py). To install it, you can either:\n\n   + Install it from [PyPI](https://pypi.python.org/pypi/qds_sdk) - `pip install qds-sdk`.\n\n   + Download the package from [GitHub](https://github.com/qubole/qds-sdk-py) and then\n     ```\n     cd /path/to/qds-sdk-py/\n     sudo python setup.py install\n     ```\n\n2. [rPython](http://cran.r-project.org/web/packages/rPython/). In R,\n    ```\n    install.packages(\"rPython\")\n    ```\n\n\nInstallation:\n-------------\nIn R\n\n    install.packages(\"devtools\")\n    devtools::install_github(\"qubole/qds-sdk-R\")\n\n\nUsage:\n------\nIn Shell\n\n    $ export QDS_API_TOKEN = xxyyzz\n\nIn R\n\n    library(qds)\n    results\u003c-qds::quboleHiveCommand(query=\"show tables\")\n    \nOr\n    \n    library(qds)\n    \n    hive\u003c-HiveCommand$new() \n    Or \n    hive\u003c-HiveCommand$new(\u003capitoken\u003e) \n    Or\n    hive\u003c-HiveCommand$new(\u003capitoken\u003e,\u003cpollinterval\u003e)\n    \n    For Spark:\n    spark\u003c-SparkCommand$new()\n    sparkCmdId\u003c-spark$submit(sql=\"select * from default_qubole_memetracker limit 10\")\n    \n\nAsynchronous \n\n    commandId\u003c-hive$submit(query = \"show tables\")\n    result\u003c-hive$getresult(commandId)\n\nCancel\n\n    hive$cancel(\u003ccommandId\u003e)\n\nSynchronous\n\n    result\u003c-hive$run(query = \"show tables\")\n\nFor results\n\n    hive$getresult(\u003ccommandId\u003e)\n    \nFor logs\n\n    hive$getlog(\u003ccommandId\u003e)\n    \nTo display command object\n\n    hive$check(\u003ccommandId\u003e)\n\nOptional:\n---------\nTo change the default QDS environment variables,\n\n    $ export QDS_API_TOKEN = xxyyzz\n    $ export QDS_API_URL = https://api.qubole.com/api/\n    $ export QDS_API_VERSION = v1.2\n\nNotes:\n------\n\nThe default api_url is `https://api.qubole.com/api/`.\n\nThe default api_version is `v1.2`.\n\nAdditionally you can also use sampling in Hive. For further details read this [page](https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Sampling).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqubole%2Fqds-sdk-r","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqubole%2Fqds-sdk-r","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqubole%2Fqds-sdk-r/lists"}