Last active
June 28, 2017 12:35
-
-
Save allwefantasy/5dc8f994499ee3053623a3023fae79de to your computer and use it in GitHub Desktop.
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
{ | |
"esToCsv": { | |
"desc": "测试", | |
"strategy": "streaming.core.strategy.SparkStreamingStrategy", | |
"algorithm": [], | |
"ref": [], | |
"compositor": [ | |
{ | |
"name": "streaming.core.compositor.spark.source.SQLSourceCompositor", | |
"params": [ | |
{ | |
"format": "org.elasticsearch.spark.sql", | |
"path": "index/type", | |
"es.nodes": "", | |
"es.mapping.date.rich": "false", | |
"es.scroll.size": "5000" | |
} | |
] | |
}, | |
{ | |
"name": "streaming.core.compositor.spark.transformation.JSONTableCompositor", | |
"params": [ | |
{ | |
"tableName": "table1" | |
} | |
] | |
}, | |
{ | |
"name": "streaming.core.compositor.spark.transformation.SQLCompositor", | |
"params": [ | |
{ | |
"sql": "select * from table1" | |
} | |
] | |
}, | |
{ | |
"name": "streaming.core.compositor.spark.output.SQLOutputCompositor", | |
"params": [ | |
{ | |
"format": "com.databricks.spark.csv", | |
"path": "/tmp/csv-table1", | |
"header": "true", | |
"inferSchema": "true" | |
} | |
] | |
} | |
], | |
"configParams": { | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment