Cannot read or show TrainingDataset

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


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",
                               splits={'train': 0.7, 'test': 0.2, 'validate': 0.1},

Now I read the TrainingDataset

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


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

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

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

/srv/hops/anaconda/envs/theenv/lib/python3.7/site-packages/hsfs/core/ in read(self, training_dataset, split, user_read_options)
     79             path = training_dataset.location + "/" + str(split)
---> 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)