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

confusion with config in online mode #4

Open
krsnad opened this issue Dec 5, 2020 · 1 comment
Open

confusion with config in online mode #4

krsnad opened this issue Dec 5, 2020 · 1 comment

Comments

@krsnad
Copy link

krsnad commented Dec 5, 2020

I was already using QLIB without the server.
my provider_uri was QLIB_DS2_DATA_DIR

Now I installed the qlib server and it is running. I checked the logs
My config is as follows
`ONLINE_CONFIG = {
# data provider config

"calendar_provider": {"class": "LocalCalendarProvider", "kwargs": {"remote": True}},
"instrument_provider": "ClientInstrumentProvider",
"feature_provider": {"class": "LocalFeatureProvider", "kwargs": {"remote": True}},
"expression_provider": "LocalExpressionProvider",
"dataset_provider": "ClientDatasetProvider",
"provider": "ClientProvider",

# config it in user's own code
"provider_uri": "127.0.0.1:/",
# cache
# Using parameter 'remote' to announce the client is using server_cache, and the writing access will be disabled.

"expression_cache": None,
"dataset_cache": None,
"calendar_cache": None,
"mount_path": QLIB_DS2_DATA_DIR,
"auto_mount": True,  # The nfs is already mounted on our server[auto_mount: False].
"flask_server": "127.0.0.1",
"flask_port": 9710,
"region": "cn",

}`

Now Im not able to query any data.

@zhupr
Copy link
Collaborator

zhupr commented Dec 7, 2020

Hi, you can try the following operation:

  • View the NFS mount result: df -h
    If NFS is not successfully mounted, you can mount it manually: sudo mount -t nfs 127.0.0.1:/ <QLIB_DS2_DATA_DIR>
  • Check whether qlib-server is running successfully: telnet 127.0.0.1 9710
    If port 9710 cannot be connected, you can post the log of qlib-server startup

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