[英]How to get Schema name/database name from Druid ingestion spec json file?
how can I get Schema name/database name from Druid ingestion spec json file.i have gone through the tutorial but didn't find any regarding schema name or database name. 我如何从Druid摄取规范json文件中获取架构名称/数据库名称。我已经完成了本教程,但未找到任何有关架构名称或数据库名称的信息。
eg: 例如:
"dataSchema" : {
"dataSource" : "ingestion-tutorial",
"parser" : {
"type" : "string",
"parseSpec" : {
"format" : "json",
"timestampSpec" : {
"format" : "iso",
"column" : "ts"
},
"dimensionsSpec" : {
"dimensions": [
"srcIP",
{ "name" : "srcPort", "type" : "long" },
{ "name" : "dstIP", "type" : "string" },
{ "name" : "dstPort", "type" : "long" },
{ "name" : "protocol", "type" : "string" }
]
}
}
},
"granularitySpec" : {
"rollup" : true
}
}
for the above ingestion spec we can get the table name from "dataSource" key and column names from "dimensions" key values. 对于上述摄取规范,我们可以从“ dataSource”键获取表名,从“ dimensions”键值获取列名。 but how to get the schema name or database name?
但是如何获取架构名称或数据库名称? i'am new in Druid and I need to write a parsing application which extracts these details from the json file.
我是Druid的新手,我需要编写一个解析应用程序,该应用程序从json文件中提取这些详细信息。 like database name, table name, and column names.any help would be appreciated.
例如数据库名称,表名称和列名称。任何帮助将不胜感激。
There is no such concept in Druid as "Database" or "Schema". 在Druid中没有“数据库”或“架构”这样的概念。 Apache Druid has only "tables"(Datasources) - https://druid.apache.org/docs/latest/querying/datasource.html and they are not namespaced in any way.
Apache Druid仅具有“表”(数据源)-https: //druid.apache.org/docs/latest/querying/datasource.html,并且它们没有任何命名空间。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.