we are getting an error when we run qlib online.
provider_uri: /qlib/bin_data/cn_data
flask_server: 127.0.0.1
flask_port: 9710
queue_host: 127.0.0.1
queue_user: admin
queue_pwd: ####
task_queue: qlib_task_queue
message_queue: qlib_msg_queue
max_concurrency: 10
max_process: 30
redis_host: 127.0.0.1
redis_port: 6379
redis_task_db: 1
auto_update: 0
update_time: '23:45'
client_version: '>=0.4.0'
server_version: '>=0.4.0'
dataset_cache_dir_name: dataset_cache
features_cache_dir_name: features_cache
/qlib/bin_data/cn_data *(rw,sync,no_subtree_check,no_root_squash)
python main.py -c config.yaml
ls -l /qlib/bin_data/cn_data/dataset_cache/
总用量 1936852
-rw-rw---- 1 dev dev 344595812 3月 9 18:47 8d1f1755a8b65351ae4fe43016cdf52d
-rwxr--r-- 1 dev dev 183303 3月 9 18:47 8d1f1755a8b65351ae4fe43016cdf52d.index
-rwxr--r-- 1 dev dev 235 3月 9 18:47 8d1f1755a8b65351ae4fe43016cdf52d.meta
sudo mount 192.168.0.165:/qlib/bin_data/cn_data /remote_qlib_data/
{
# 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": "192.168.0.165:/qlib/bin_data/cn_data",
# 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": "/remote_qlib_data",
"auto_mount": False, # The nfs is already mounted on our server[auto_mount: False].
"flask_server": "192.168.0.165",
"flask_port": 9710,
"region": "cn",
File "/workspace/qlib/data/data.py", line 967, in dataset
df = DiskDatasetCache.read_data_from_cache(mnt_feature_uri, start_time, end_time, fields)
File "/workspace/qlib/data/cache.py", line 683, in read_data_from_cache
with pd.HDFStore(cache_path, mode="r") as store:
File "/workspace/venv/lib/python3.8/site-packages/pandas/io/pytables.py", line 537, in __init__
self.open(mode=mode, **kwargs)
File "/workspace/venv/lib/python3.8/site-packages/pandas/io/pytables.py", line 655, in open
self._handle = tables.open_file(self._path, self._mode, **kwargs)
File "/workspace/venv/lib/python3.8/site-packages/tables/file.py", line 315, in open_file
return File(filename, mode, title, root_uep, filters, **kwargs)
File "/workspace/venv/lib/python3.8/site-packages/tables/file.py", line 778, in __init__
self._g_new(filename, mode, **params)
File "tables/hdf5extension.pyx", line 374, in tables.hdf5extension.File._g_new
File "/workspace/venv/lib/python3.8/site-packages/tables/utils.py", line 158, in check_file_access
raise IOError("file ``%s`` exists but it can not be read"
OSError: file ``/remote_qlib_data/dataset_cache/8d1f1755a8b65351ae4fe43016cdf52d`` exists but it can not be read