sangeethsasidharan opened a new issue, #6469:
URL: https://github.com/apache/hudi/issues/6469

   
   
   **Describe the problem you faced**
   
   I am trying to see how z-order works in hudi by using the sample data set 
mentioned in the hudi official site , i have mentioned below property
    "hoodie.layout.optimize.strategy", "z-order" 
   while writing the data , but i am not able to see any folder created with 
"mys3path/.hoodie/.zindex/"  as mentioned in the below issue
   https://github.com/apache/hudi/issues/4609
   
   
   below is my complete code 
   
   
   tableName = "hudi_trips_cow"
   basePath = "mys3path"
   dataGen = 
spark.sparkContext._jvm.org.apache.hudi.QuickstartUtils.DataGenerator()
   inserts = 
spark.sparkContext._jvm.org.apache.hudi.QuickstartUtils.convertToStringList(dataGen.generateInserts(10))
   df = spark.read.json(spark.sparkContext.parallelize(inserts, 2))
   #df.show()
   
   
   df.write.format("org.apache.hudi")\
       .option("hoodie.table.name", tableName)\
       .option("hoodie.datasource.write.table.name", tableName)\
       .option("hoodie.datasource.write.operation", "bulk_insert")\
       .option("hoodie.sql.insert.mode", "non-strict")\
       .option("hoodie.datasource.write.precombine.field", "ts")\
       .option("hoodie.datasource.write.recordkey.field", "uuid")\
       .option("hoodie.datasource.write.partitionpath.field", "partitionpath")\
       .option("hoodie.datasource.write.keygenerator.class", 
"org.apache.hudi.keygen.ComplexKeyGenerator")\
       .option("hoodie.datasource.write.hive_style_partitioning", "true")\
       .option("hoodie.bulkinsert.shuffle.parallelism", "2000")\
       .option("hoodie.bulkinsert.sort.mode", "NONE")\
       .option("hoodie.parquet.compression.codec", "zstd")\
       .option("hoodie.clustering.inline", "true")\
       .option("hoodie.clustering.inline.max.commits", "1")\
       .option("hoodie.clustering.plan.strategy.target.file.max.bytes", 
"1073741824")\
       .option("hoodie.clustering.plan.strategy.small.file.limit", "536870912")\
       .option("hoodie.clustering.plan.strategy.sort.columns", "ts")\
       .option("hoodie.layout.optimize.enable", "true")\
       .option("hoodie.layout.optimize.strategy", "z-order")\
       .mode("append")\
       .save(basePath)
   
   
   
   
   **Expected behavior**
   
   a folder named 'mys3path/.hoodie/.zindex/' should have been created , but i 
can see any folder '.zindex' in '.hoodie' folder
   
   **Environment Description**
   
   * Hudi version : 0.10.0
   
   * Spark version : 3.2.0
   
   * Storage (HDFS/S3/GCS..) : s3
   
   * Running on Docker? (yes/no) : No , in EC2
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to