Cannot read or show TrainingDataset

AttributeError: ‘Engine’ object has no attribute ‘read_options’

print(join_training.to_string())

SELECT `fg1`.`moon_x1`, `fg1`.`moon_x0`, `fg1`.`moon_id`, `fg0`.`moon_label`
FROM `iris_featurestore`.`moon_train_1` `fg1`
INNER JOIN `iris_featurestore`.`moon_label_1` `fg0` ON `fg1`.`moon_id` = `fg0`.`moon_id`



td2 = fs.create_training_dataset(name="moon_training_dataset",
                               description="Dataset to train the moon model",
                               data_format="parquet",
                               splits={'train': 0.7, 'test': 0.2, 'validate': 0.1},
                               version=2)

td2.save(join_training)

Now I read the TrainingDataset

df = fs.get_training_dataset("moon_training_dataset", 2)
df.show(4)

Error

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-13-390e54b9050c> in <module>
----> 1 df.show(4)

/srv/hops/anaconda/envs/theenv/lib/python3.7/site-packages/hsfs/training_dataset.py in show(self, n, split)
    269                 when taking all splits together.
    270         """
--> 271         self.read(split).show(n)
    272 
    273     def add_tag(self, name: str, value):

/srv/hops/anaconda/envs/theenv/lib/python3.7/site-packages/hsfs/training_dataset.py in read(self, split, read_options)
    216                 training dataset.
    217         """
--> 218         return self._training_dataset_engine.read(self, split, read_options)
    219 
    220     def compute_statistics(self):

/srv/hops/anaconda/envs/theenv/lib/python3.7/site-packages/hsfs/core/training_dataset_engine.py in read(self, training_dataset, split, user_read_options)
     79             path = training_dataset.location + "/" + str(split)
     80 
---> 81         read_options = engine.get_instance().read_options(
     82             training_dataset.data_format, user_read_options
     83         )

AttributeError: 'Engine' object has no attribute 'read_options'

Currenly I am using Demo instance.

Please tell me if I miss something.

@thaithien there was an issue with an early release of hsfs - 2.2.x series. I guess you are using the Python Kernel, can you try to use the PySpark kernel instead?

Alternatively, you can remove the existing version of Hsfs on your project (from the Python UI > Manage Environment) and install the most recent version (2.2.15)