Skip to content

Commit

Permalink
Adding in UI config
Browse files Browse the repository at this point in the history
Fix for UI config which is now required in Dremio connectors
  • Loading branch information
Jonny Dixon authored and jduo committed May 20, 2022
1 parent 46ddc36 commit f938c59
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/dremio/exec/store/hbase/HBaseConf.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

import io.protostuff.Tag;

@SourceType(value = "HBASE", label = "HBase")
@SourceType(value = "HBASE", label = "HBase", uiConfig = "hbase-layout.json")
public class HBaseConf extends ConnectionConf<HBaseConf, HBaseStoragePlugin> {

private transient Configuration hbaseConf;
Expand Down
55 changes: 55 additions & 0 deletions src/main/resources/hbase-layout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"sourceType": "HBASE",
"metadataRefresh": {
"datasetDiscovery": true
},
"form": {
"tabs": [
{
"name": "General",
"isGeneral": true,
"sections": [
{
"name": "Connection",
"layout": "row",
"elements": [
{
"propName": "config.zkQuorum",
"placeholder": "e.g.123.123.123.123",
"size": "half",
"validate": {
"isRequired": true
}
},
{
"propName": "config.port",
"size": "half",
"validate": {
"isRequired": true
}
},
{
"propName": "config.isSizeCalcEnabled"
}
]
}
]
},
{
"name": "Advanced Options",
"sections": [
{
"elements": [
{
"label": "Advanced Properties",
"emptyLabel": "No properties added",
"addLabel": "Add property",
"propName": "config.propertyList"
}
]
}
]
}
]
}
}

0 comments on commit f938c59

Please sign in to comment.