Skip to content

Instantly share code, notes, and snippets.

@allwefantasy
Last active June 28, 2017 12:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allwefantasy/5dc8f994499ee3053623a3023fae79de to your computer and use it in GitHub Desktop.
Save allwefantasy/5dc8f994499ee3053623a3023fae79de to your computer and use it in GitHub Desktop.
{
"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