You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "moweonlee (via GitHub)" <gi...@apache.org> on 2024/05/13 08:06:33 UTC

[I] Using subdirectory to dave data in ICEBERG. [iceberg]

moweonlee opened a new issue, #10327:
URL: https://github.com/apache/iceberg/issues/10327

   ### Query engine
   
   Spark - pyspark 
   
   ### Question
   
   We have stored our data in HDFS into subdirecties for every hour with batch processing .
   
   Here are the examples to show how we write data in HDFS for every hours. 
   
   - hdfs://team/data/logtype_a/2024/05/01/00 
   - hdfs://team/data/logtype_b/2024/05/01/01
   
   We have many data applications that uses that directories as input for long time.
   And it's practically hard to change input directory in applications that uses directories.
   
   But anyway I'd like to use ICEBERG with that data with metadata location "hdfs://team/data/rawlog/metadata".
   Because we'd like to read whole data as single table.  ( from Starrocks ) 
   
   So my question is "Can I load data for every hours with single metadata location"
   
   We uses PySpark to load data.
   
   And here is example code that loads data. 
   
   ```
   df\
     .writeTo(tableName) \
     .tableProperty("write.data.path"    ,"hdfs://team/data/logtype_a/" + datePath + "/" + hour + "/") \
     .tableProperty("write.metadata.path"    ,"hdfs://team/data/logtype_a/" ) \
     .option("mergeSchema","true") \
     .append()
   ```
   
   
   
   
   
   


-- 
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: issues-unsubscribe@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] Using subdirectory to dave data in ICEBERG. [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #10327: Using subdirectory to dave data in ICEBERG. 
URL: https://github.com/apache/iceberg/issues/10327


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] Using subdirectory to dave data in ICEBERG. [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #10327:
URL: https://github.com/apache/iceberg/issues/10327#issuecomment-2495713811

   This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] Using subdirectory to dave data in ICEBERG. [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #10327:
URL: https://github.com/apache/iceberg/issues/10327#issuecomment-2466519625

   This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org