David created ZEPPELIN-3603:
-------------------------------
Summary: updating interpreters settings through API deletes
properties
Key: ZEPPELIN-3603
URL: https://issues.apache.org/jira/browse/ZEPPELIN-3603
Project: Zeppelin
Issue Type: Bug
Components: rest-api
Affects Versions: 0.7.3
Environment: centos 7.5.1804
Reporter: David
This happens for each interpreter, but I will take psql as an example.
1) default settings
Psql default settings contain, among other things :
"name": "psql",
...
{color:#14892c}"properties": {{color}
{color:#14892c} "postgresql.driver.name": "org.postgresql.Driver",{color}
{color:#14892c} "postgresql.password": "",{color}
{color:#14892c} "postgresql.url": "jdbc:postgresql://localhost:5432/",{color}
{color:#14892c} "postgresql.max.result": "1000",{color}
{color:#14892c} "postgresql.user": "gpadmin"{color}
{color:#14892c} },{color}
....
2) changing a parameter ( with curl here):
{{curl -b cookie
http://[zeppelin-server]:[zeppelin-port]/api/interpreter/setting/[interpreter
ID] -X PUT -d '\{ "option": { "isUserImpersonate": true, "perUser": "isolated"}
}'}}
As you can see, I do not change anything belonging to properties.
3) curl's return
{"status":"OK","message":"","body":\{"id":"2DKAKYN72","name":"psql","group":"psql","status":"DOWNLOADING_DEPENDENCIES","interpreterGroup":[{"name":"sql","class":"org.apache.zeppelin.postgresql.PostgreSqlInterpreter","defaultInterpreter":false,"editor":{}}],"option":\{"remote":false,"port":-1,"perNote":"shared","perUser":"isolated","isExistingProcess":false,"setPermission":false,"isUserImpersonate":true}}}
==> properties are gone.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)