Hi Jonathan. Thanks for the response. I am setting the content type. Here’s the full curl command.
curl -X POST \
http://myhost:8081/druid/coordinator/v1/lookups/config \
-H ‘Cache-Control: no-cache’ \
-H ‘Content-Type: application/json’ \
-H ‘Postman-Token: aa7e05e6-b2ed-ed49-74c2-cdb514e58764’ \
-d '{
“__default”: {
“fullname_lookup”: {
“version”: “v2”,
“lookupExtractorFactory”: {
“type”: “cachedNamespace”,
“extractionNamespace”: {
“type”: “jdbc”,
“connectorConfig”: {
“createTables”: true,
“connectURI”: “jdbc:postgresql://myjdbc:5432/mydb”,
“user”: “username”,
“password”: “password”
},
“table”: “users_master_with_hash”,
“keyColumn”: “userid_hash”,
“valueColumn”: “full_name”
},
“firstCacheTimeout”: 120000,
“injective”: false
}
},
“email_lookup”: {
“version”: “v2”,
“lookupExtractorFactory”: {
“type”: “cachedNamespace”,
“extractionNamespace”: {
“type”: “jdbc”,
“connectorConfig”: {
“createTables”: true,
“connectURI”: “jdbc:postgresql://myjdbc:5432/mydb”,
“user”: “username”,
“password”: “password”
},
“table”: “users_master_with_hash”,
“keyColumn”: “userid_hash”,
“valueColumn”: “email”
},
“firstCacheTimeout”: 120000,
“injective”: false
}
},
“title_lookup”: {
“version”: “v2”,
“lookupExtractorFactory”: {
“type”: “cachedNamespace”,
“extractionNamespace”: {
“type”: “jdbc”,
“connectorConfig”: {
“createTables”: true,
“connectURI”: “jdbc:postgresql://myjdbc:5432/mydb”,
“user”: “username”,
“password”: “password”
},
“table”: “users_master_with_hash”,
“keyColumn”: “userid_hash”,
“valueColumn”: “title”
},
“firstCacheTimeout”: 120000,
“injective”: false
}
},
“user_type_lookup”: {
“version”: “v2”,
“lookupExtractorFactory”: {
“type”: “cachedNamespace”,
“extractionNamespace”: {
“type”: “jdbc”,
“connectorConfig”: {
“createTables”: true,
“connectURI”: “jdbc:postgresql://myjdbc:5432/mydb”,
“user”: “username”,
“password”: “password”
},
“table”: “users_master_with_hash”,
“keyColumn”: “userid_hash”,
“valueColumn”: “user_type”
},
“firstCacheTimeout”: 120000,
“injective”: false
}
}
},
“organization_name_lookup”: {
“version”: “v2”,
“lookupExtractorFactory”: {
“type”: “cachedNamespace”,
“extractionNamespace”: {
“type”: “jdbc”,
“connectorConfig”: {
“createTables”: true,
“connectURI”: “jdbc:postgresql://myjdbc:5432/mydb”,
“user”: “username”,
“password”: “password”
},
“table”: “users_master_with_hash”,
“keyColumn”: “userid_hash”,
“valueColumn”: “organization_name_truth”
},
“firstCacheTimeout”: 120000,
“injective”: false
}
},
“entity_code_lookup”: {
“version”: “v2”,
“lookupExtractorFactory”: {
“type”: “cachedNamespace”,
“extractionNamespace”: {
“type”: “jdbc”,
“connectorConfig”: {
“createTables”: true,
“connectURI”: “jdbc:postgresql://myjdbc:5432/mydb”,
“user”: “username”,
“password”: “password”
},
“table”: “users_master_with_hash”,
“keyColumn”: “userid_hash”,
“valueColumn”: “entity_code_truth”
},
“firstCacheTimeout”: 120000,
“injective”: false
}
},
“top_parent_organization_name_lookup”: {
“version”: “v2”,
“lookupExtractorFactory”: {
“type”: “cachedNamespace”,
“extractionNamespace”: {
“type”: “jdbc”,
“connectorConfig”: {
“createTables”: true,
“connectURI”: “jdbc:postgresql://myjdbc:5432/mydb”,
“user”: “username”,
“password”: “password”
},
“table”: “users_master_with_hash”,
“keyColumn”: “userid_hash”,
“valueColumn”: “top_parent_name”
},
“firstCacheTimeout”: 120000,
“injective”: false
}
},
“top_parent_entity_code_lookup”: {
“version”: “v2”,
“lookupExtractorFactory”: {
“type”: “cachedNamespace”,
“extractionNamespace”: {
“type”: “jdbc”,
“connectorConfig”: {
“createTables”: true,
“connectURI”: “jdbc:postgresql://myjdbc:5432/mydb”,
“user”: “username”,
“password”: “password”
},
“table”: “users_master_with_hash”,
“keyColumn”: “userid_hash”,
“valueColumn”: “top_parent_entity_code”
},
“firstCacheTimeout”: 120000,
“injective”: false
}
}
}’
``