How add new column in to existing druid schema?

六眼飞鱼酱① 提交于 2020-06-13 01:29:08

问题


I create a schema and i add 1TB data to druid schema. then the log file version was upgraded and new two columns was added. then i want to add that data to druid schema. but couldn't yet.


回答1:


In order to add a new column to existing datasource you need to follow the below steps:

  1. Go to the Tasks menu in druid console.
  2. From the listed datasources, go to the 'Actions' column in the last of the datasource in which you want to add the column.
  3. There will be a magnifying glass like button, click on that to copy the existing payload.
  4. Copy the payload in notepad and add the 2 columns to "dimensions" array.
  5. Copy the updated payload and submit it via Submit Supervisor button.

You'll find the new columns in the datasource which you can verify by querying the datasource in query section of druid.



来源:https://stackoverflow.com/questions/56557285/how-add-new-column-in-to-existing-druid-schema

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!