This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bulk load the Foo data we prepared via PySpark in etl/transform_foo.spark.py | |
for path in data/foo/elastic/part* | |
do | |
file=$(basename ${path}) | |
echo "Submitting ${path} to Elastic index foo ..." | |
curl ${USER_STRING} \ | |
-X POST \ | |
-H "Content-encoding: gzip" \ | |
-H "Content-Type: application/x-ndjson" \ |