Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghifariram opened this issue Dec 24, 2021 · 1 comment
Assignees

Comments

@ghifariram
Copy link

ghifariram commented Dec 24, 2021

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

@ghifariram ghifariram changed the title GPUDb object instantiation throws Missing value for 'conf.np1.enable_head_failover' Error GPUdb object instantiation throws Missing value for 'conf.np1.enable_head_failover' Error Dec 24, 2021
@kylesutton
Copy link
Contributor

kylesutton commented Mar 1, 2023

@ghifariram - this looks like a problem that might occur when using a 7.1 API to connect to a 7.0 (or older) database. If so, switch to a 7.0 API (7.0.20.1 is the latest) and try again. If not, can you let me know the version of the server you're trying to connect to and what type of installation it is (cloud, original 7.1 on-prem, 7.0 -> 7.1 upgraded on-prem, etc.)?

Thanks,
Kyle

@kylesutton kylesutton self-assigned this Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants