Curtis Green
02/23/2024, 11:21 PMcurl -X 'PUT' -u admin:password \
'<http://10.11.11.11:9000/tableConfigs/transcript_OFFLINE?reload=false&forceTableSchemaUpdate=true>' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"tableName": "transcript1",
"segmentsConfig": {
"timeColumnName": "timestamp",
"timeType": "MILLISECONDS",
"replication": "1",
"schemaName": "manuscript",
"segmentPushType": "APPEND"
},
"tableIndexConfig": {
"invertedIndexColumns": [],
"loadMode":"heap"
},
"tenants": {
"broker":"overlord",
"server":"overlord"
},
"tableType":"OFFLINE",
"metadata": {}
}'
{"code":400,"error":"Invalid TableConfigs: transcript_OFFLINE"}
However, that config works to create a table.Mayank
Mayank
saurabh dubey
02/26/2024, 5:07 AMCurtis Green
02/26/2024, 6:03 PMCurtis Green
02/26/2024, 6:03 PMcurl -X 'PUT' -u admin:password \
'<http://10.11.11.11:9000/tableConfigs/transcript_OFFLINE?reload=false&forceTableSchemaUpdate=true>' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"tableName": "transcript",
"segmentsConfig":
{
"timeColumnName": "timestamp",
"timeType": "MILLISECONDS",
"replication": "1",
"schemaName": "manuscript",
"segmentPushType": "APPEND"
},
"tableIndexConfig":
{
"loadMode": "MMAP"
},
"tenants":
{
"broker": "overlord",
"server": "overlord"
},
"tableType": "OFFLINE"
}'Curtis Green
02/26/2024, 6:11 PMCurtis Green
02/26/2024, 6:11 PMCurtis Green
02/26/2024, 6:43 PMcurl -X 'PUT' -u admin:password \
'<http://10.11.11.11:9000/tableConfigs/transcript_OFFLINE?reload=false&forceTableSchemaUpdate=true>' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"tableName": "transcript",
"segmentsConfig": {
"timeColumnName": "timestamp",
"timeType": "MILLISECONDS",
"replication": "2",
"schemaName": "transcript",
"segmentPushType": "APPEND"
},
"tableIndexConfig": {
"invertedIndexColumns": [],
"loadMode":"heap"
},
"tenants": {
"broker":"overlord",
"server":"overlord"
},
"tableType":"OFFLINE",
"metadata": {}
}'saurabh dubey
02/27/2024, 9:46 AM/tableConfis API, can you try PUT /tables API?
/tableConfigs API expects tableConfig + schema in the same json. You're posting just the tableConfig jsonCurtis Green
02/27/2024, 5:51 PMCurtis Green
02/27/2024, 5:52 PM