{"id":13398144,"url":"https://github.com/yukim/cassandra-bulkload-example","last_synced_at":"2025-08-13T06:32:49.635Z","repository":{"id":21194433,"uuid":"24504181","full_name":"yukim/cassandra-bulkload-example","owner":"yukim","description":null,"archived":false,"fork":false,"pushed_at":"2016-02-21T16:23:04.000Z","size":59,"stargazers_count":67,"open_issues_count":4,"forks_count":34,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-07-31T19:15:30.468Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yukim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-26T15:11:10.000Z","updated_at":"2023-01-18T07:30:55.000Z","dependencies_parsed_at":"2022-08-28T00:13:01.235Z","dependency_job_id":null,"html_url":"https://github.com/yukim/cassandra-bulkload-example","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/yukim%2Fcassandra-bulkload-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukim%2Fcassandra-bulkload-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukim%2Fcassandra-bulkload-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukim%2Fcassandra-bulkload-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yukim","download_url":"https://codeload.github.com/yukim/cassandra-bulkload-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229740734,"owners_count":18116992,"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-07-30T19:00:18.191Z","updated_at":"2024-12-14T18:32:02.497Z","avatar_url":"https://github.com/yukim.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"# cassandra-bulkload-example\n\nSample SSTable generating and bulk loading code for DataStax [Using Cassandra Bulk Loader, Updated](http://www.datastax.com/dev/blog/using-the-cassandra-bulk-loader-updated) blog post.\nThis fetches historical prices from [Yahoo! Finance](http://finance.yahoo.com/) in CSV format, and turn them to SSTables.\n\n## Generating SSTables\n\nRun:\n\n    $ ./gradlew run\n\nThis will generate SSTable(s) under `data` directory.\n\n## Bulk loading\n\nFirst, create schema using `schema.cql` file:\n\n    $ cqlsh -f schema.cql\n\nThen, load SSTables to Cassandra using `sstableloader`:\n\n    $ sstableloader -d \u003cip address of the node\u003e data/quote/historical_prices\n\n(assuming you have `cqlsh` and `sstableloader` in your `$PATH`)\n\n## Check loaded data\n\n\n    $ bin/cqlsh\n    Connected to Test Cluster at 127.0.0.1:9042.\n    [cqlsh 5.0.1 | Cassandra 2.1.0 | CQL spec 3.2.0 | Native protocol v3]\n    Use HELP for help.\n    cqlsh\u003e USE quote ;\n    cqlsh:quote\u003e SELECT * FROM historical_prices WHERE ticker = 'ORCL' LIMIT 3;\n\n     ticker | date                     | adj_close | close | high  | low   | open  | volume\n    --------+--------------------------+-----------+-------+-------+-------+-------+----------\n       ORCL | 2014-09-25 00:00:00-0500 |     38.76 | 38.76 | 39.35 | 38.65 | 39.35 | 13287800\n       ORCL | 2014-09-24 00:00:00-0500 |     39.42 | 39.42 | 39.56 | 38.57 | 38.77 | 18906200\n       ORCL | 2014-09-23 00:00:00-0500 |     38.83 | 38.83 | 39.59 | 38.80 | 39.50 | 34353300\n\n    (3 rows)\n\nVoilà!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyukim%2Fcassandra-bulkload-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyukim%2Fcassandra-bulkload-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyukim%2Fcassandra-bulkload-example/lists"}