Skip to content

Instantly share code, notes, and snippets.

@Yengas
Last active November 15, 2020 09:07
Show Gist options
  • Select an option

  • Save Yengas/6251433a4cade2829e4a0c07308ebd5c to your computer and use it in GitHub Desktop.

Select an option

Save Yengas/6251433a4cade2829e4a0c07308ebd5c to your computer and use it in GitHub Desktop.
Cassandra CSV import with GZIP compression
(echo "COPY flat.data (metric, resource, domain, timestamp, longvalue, doublevalue, textvalue) FROM STDIN;"; \
gzip -dc flat-data-*.csv.gz;) | cqlsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment