python – cannot load a stringIndex model from HDFS

When I use the stringindex to fit the train data, I want to save the index model for my predict data. And I saved to HDFS path successfully, But when I load it, it shows the error below. How could I load the index model correctly? stringIndexerPath = “hdfs://users/stringindexer” stringindex_model.write().overwrite().save(stringIndexerPath) loadedIndexer = StringIndexer.load(stringIndexerPath) Output exceeds … Read more