Skip to content

GPUdb object instantiation throws Missing value for 'conf.np1.enable_head_failover' Error #11

@ghifariram

Description

@ghifariram

Hi guys,

I'm trying to instantiate the gpudb.GPUdb object using this code snippet:

import gpudb

credentials = {
'host': 'xx.xx.xx.xx',
'port': 9191,
'user': 'username',
'pass': 'password'
}
 
db_obj = gpudb.GPUdb(
    host=f"http://{credentials['host']}",
    port=credentials['port'],
    username=credentials["user"],
    password=credentials["pass"],
) 

But I got this error:
GPUdbException: "Missing value for 'conf.np1.enable_head_failover' in system properties"

I'm on the client side so I don't know & don't have control over how the server is configured and its system properties.

Is this expected behavior? Based on the docs, I believe conf.np1.enable_head_failover has a default value so we don't necessarily need to specify it on the /opt/gpudb/core/etc/gpudb.conf file

I'm using gpudb==7.1.5.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions