You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by "AngersZhuuuu (via GitHub)" <gi...@apache.org> on 2023/06/27 07:10:43 UTC

[GitHub] [incubator-celeborn] AngersZhuuuu opened a new pull request, #1629: [CELEBORN-718] Celeborn generate hadoop configuration should respect Celeborn conf

AngersZhuuuu opened a new pull request, #1629:
URL: https://github.com/apache/incubator-celeborn/pull/1629

   ### What changes were proposed in this pull request?
    Celeborn generate hadoop configuration should respect Celeborn conf
   
   
   ### Why are the changes needed?
   
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   
   
   ### How was this patch tested?
   
   


-- 
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@celeborn.apache.org

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


[GitHub] [incubator-celeborn] pan3793 commented on a diff in pull request #1629: [CELEBORN-718] Celeborn generate hadoop configuration should respect Celeborn conf

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #1629:
URL: https://github.com/apache/incubator-celeborn/pull/1629#discussion_r1243309760


##########
worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/StorageManager.scala:
##########
@@ -129,8 +129,8 @@ final private[worker] class StorageManager(conf: CelebornConf, workerSource: Abs
     if (!hdfsDir.isEmpty) {
       val path = new Path(hdfsDir)
       val scheme = path.toUri.getScheme
-      val disableCacheName = String.format("fs.%s.impl.disable.cache", scheme);
-      val hdfsConfiguration = new Configuration
+      val disableCacheName = String.format("fs.%s.impl.disable.cache", scheme)
+      val hdfsConfiguration = CelebornHadoopUtils.newConfiguration(conf)

Review Comment:
   I'm fine with this. cc @FMX too, seems no HDFS docs now, this should be documented clearly, otherwise may confusing Spark users, especially who run Spark on K8s, because there were some issues on Hadoop Conf propagation in Spark on K8s, the user is likely configuration Hadoop through `spark.hadoop.*` in `spark-defaults.conf` instead



-- 
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@celeborn.apache.org

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


[GitHub] [incubator-celeborn] pan3793 commented on a diff in pull request #1629: [CELEBORN-718] Celeborn generate hadoop configuration should respect Celeborn conf

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #1629:
URL: https://github.com/apache/incubator-celeborn/pull/1629#discussion_r1243323229


##########
docs/migration.md:
##########
@@ -55,3 +55,7 @@ license: |
             at org.apache.celeborn.common.serializer.JavaDeserializationStream.readObject(JavaSerializer.scala:76)
             at org.apache.celeborn.common.serializer.JavaSerializerInstance.deserialize(JavaSerializer.scala:110)
         ```
+
+ - Since 0.3.0, the Celeborn support cover hadoop configuration from Celeborn conf. 
+   In spark client side user should set hadoop configuration like `spark.celeborn.hadoop.xxx.xxx`,
+   in flink client, master and worker side user should set like `celeborn.hadoop.xxx.xxx`.

Review Comment:
   the style may need to adjustment
   
   ```suggestion
    - Since 0.3.0, Celeborn supports overriding Hadoop configuration(`core-site.xml`, `hdfs-site.xml`, etc.) from Celeborn configuration with the additional prefix `celeborn.hadoop.`. 
      On Spark client side, user should set Hadoop configuration like `spark.celeborn.hadoop.foo=bar`, note that `spark.hadoop.foo=bar` does not take effect;
      on Flink client and Celeborn Master/Worker side, user should set like `celeborn.hadoop.foo=bar`.
   ```



-- 
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@celeborn.apache.org

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


[GitHub] [incubator-celeborn] codecov[bot] commented on pull request #1629: [CELEBORN-718] Celeborn generate hadoop configuration should respect Celeborn conf

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #1629:
URL: https://github.com/apache/incubator-celeborn/pull/1629#issuecomment-1608945404

   ## [Codecov](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1629?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   > Merging [#1629](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1629?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (697608e) into [main](https://app.codecov.io/gh/apache/incubator-celeborn/commit/22b21295e8ac59cff76b494c4ee8acf103ff6773?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (22b2129) will **increase** coverage by `0.17%`.
   > The diff coverage is `n/a`.
   
   ```diff
   @@            Coverage Diff             @@
   ##             main    #1629      +/-   ##
   ==========================================
   + Coverage   45.91%   46.08%   +0.17%     
   ==========================================
     Files         159      160       +1     
     Lines        9924     9931       +7     
     Branches      970      971       +1     
   ==========================================
   + Hits         4556     4576      +20     
   + Misses       5068     5056      -12     
   + Partials      300      299       -1     
   ```
   
   
   | [Impacted Files](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1629?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [...che/celeborn/common/util/CelebornHadoopUtils.scala](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1629?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-Y29tbW9uL3NyYy9tYWluL3NjYWxhL29yZy9hcGFjaGUvY2VsZWJvcm4vY29tbW9uL3V0aWwvQ2VsZWJvcm5IYWRvb3BVdGlscy5zY2FsYQ==) | `85.72% <ø> (ø)` | |
   
   ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1629/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   
   :mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   


-- 
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@celeborn.apache.org

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


[GitHub] [incubator-celeborn] pan3793 commented on a diff in pull request #1629: [CELEBORN-718] Celeborn generate hadoop configuration should respect Celeborn conf

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #1629:
URL: https://github.com/apache/incubator-celeborn/pull/1629#discussion_r1243309760


##########
worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/StorageManager.scala:
##########
@@ -129,8 +129,8 @@ final private[worker] class StorageManager(conf: CelebornConf, workerSource: Abs
     if (!hdfsDir.isEmpty) {
       val path = new Path(hdfsDir)
       val scheme = path.toUri.getScheme
-      val disableCacheName = String.format("fs.%s.impl.disable.cache", scheme);
-      val hdfsConfiguration = new Configuration
+      val disableCacheName = String.format("fs.%s.impl.disable.cache", scheme)
+      val hdfsConfiguration = CelebornHadoopUtils.newConfiguration(conf)

Review Comment:
   I'm fine with this. cc @FMX too, seems no HDFS docs now, this should be documented clearly, otherwise may confuse Spark users, especially those who run Spark on K8s, because there were some issues on Hadoop Conf propagation in Spark on K8s, the user is likely configure Hadoop through `spark.hadoop.*` in `spark-defaults.conf` instead



-- 
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@celeborn.apache.org

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


[GitHub] [incubator-celeborn] pan3793 commented on a diff in pull request #1629: [CELEBORN-718] Celeborn generate hadoop configuration should respect Celeborn conf

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #1629:
URL: https://github.com/apache/incubator-celeborn/pull/1629#discussion_r1243323229


##########
docs/migration.md:
##########
@@ -55,3 +55,7 @@ license: |
             at org.apache.celeborn.common.serializer.JavaDeserializationStream.readObject(JavaSerializer.scala:76)
             at org.apache.celeborn.common.serializer.JavaSerializerInstance.deserialize(JavaSerializer.scala:110)
         ```
+
+ - Since 0.3.0, the Celeborn support cover hadoop configuration from Celeborn conf. 
+   In spark client side user should set hadoop configuration like `spark.celeborn.hadoop.xxx.xxx`,
+   in flink client, master and worker side user should set like `celeborn.hadoop.xxx.xxx`.

Review Comment:
   ```suggestion
    - Since 0.3.0, Celeborn supports overriding Hadoop configuration(`core-site.xml`, `hdfs-site.xml`, etc.) from Celeborn configuration with the additional prefix `celeborn.hadoop.`. 
      On Spark client side, user should set Hadoop configuration like `spark.celeborn.hadoop.foo=bar`, note that `spark.hadoop.foo=bar` does not take effect;
      on Flink client and Celeborn Master/Worker side, user should set like `celeborn.hadoop.foo=bar`.
   ```



-- 
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@celeborn.apache.org

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


[GitHub] [incubator-celeborn] pan3793 commented on a diff in pull request #1629: [CELEBORN-718] Celeborn generate hadoop configuration should respect Celeborn conf

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #1629:
URL: https://github.com/apache/incubator-celeborn/pull/1629#discussion_r1243257217


##########
worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/StorageManager.scala:
##########
@@ -129,8 +129,8 @@ final private[worker] class StorageManager(conf: CelebornConf, workerSource: Abs
     if (!hdfsDir.isEmpty) {
       val path = new Path(hdfsDir)
       val scheme = path.toUri.getScheme
-      val disableCacheName = String.format("fs.%s.impl.disable.cache", scheme);
-      val hdfsConfiguration = new Configuration
+      val disableCacheName = String.format("fs.%s.impl.disable.cache", scheme)
+      val hdfsConfiguration = CelebornHadoopUtils.newConfiguration(conf)

Review Comment:
   seems `spark.hadoop.*` does not take effect?



-- 
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@celeborn.apache.org

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


[GitHub] [incubator-celeborn] pan3793 commented on a diff in pull request #1629: [CELEBORN-718] Celeborn generate hadoop configuration should respect Celeborn conf

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #1629:
URL: https://github.com/apache/incubator-celeborn/pull/1629#discussion_r1243309760


##########
worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/StorageManager.scala:
##########
@@ -129,8 +129,8 @@ final private[worker] class StorageManager(conf: CelebornConf, workerSource: Abs
     if (!hdfsDir.isEmpty) {
       val path = new Path(hdfsDir)
       val scheme = path.toUri.getScheme
-      val disableCacheName = String.format("fs.%s.impl.disable.cache", scheme);
-      val hdfsConfiguration = new Configuration
+      val disableCacheName = String.format("fs.%s.impl.disable.cache", scheme)
+      val hdfsConfiguration = CelebornHadoopUtils.newConfiguration(conf)

Review Comment:
   I'm fine with this. cc @FMX too, seems no HDFS docs now, this should be documented clearly, otherwise may confuse Spark users, especially those who run Spark on K8s, because there were some issues on Hadoop Conf propagation in Spark on K8s, the user is likely configuration Hadoop through `spark.hadoop.*` in `spark-defaults.conf` instead



-- 
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@celeborn.apache.org

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


[GitHub] [incubator-celeborn] AngersZhuuuu commented on a diff in pull request #1629: [CELEBORN-718] Celeborn generate hadoop configuration should respect Celeborn conf

Posted by "AngersZhuuuu (via GitHub)" <gi...@apache.org>.
AngersZhuuuu commented on code in PR #1629:
URL: https://github.com/apache/incubator-celeborn/pull/1629#discussion_r1243301402


##########
worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/StorageManager.scala:
##########
@@ -129,8 +129,8 @@ final private[worker] class StorageManager(conf: CelebornConf, workerSource: Abs
     if (!hdfsDir.isEmpty) {
       val path = new Path(hdfsDir)
       val scheme = path.toUri.getScheme
-      val disableCacheName = String.format("fs.%s.impl.disable.cache", scheme);
-      val hdfsConfiguration = new Configuration
+      val disableCacheName = String.format("fs.%s.impl.disable.cache", scheme)
+      val hdfsConfiguration = CelebornHadoopUtils.newConfiguration(conf)

Review Comment:
   > seems `spark.hadoop.*` does not take effect?
   
   Yea, to support this is complex, and not necessary, also we only support `spark.celeborn.hadoop.xx.xx` can separate conf cover Hadoop configuration's working scope.  



-- 
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@celeborn.apache.org

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


[GitHub] [incubator-celeborn] AngersZhuuuu closed pull request #1629: [CELEBORN-718] Support override Hadoop Conf by Celeborn Conf with `celeborn.hadoop.` prefix

Posted by "AngersZhuuuu (via GitHub)" <gi...@apache.org>.
AngersZhuuuu closed pull request #1629: [CELEBORN-718] Support override Hadoop Conf by Celeborn Conf with `celeborn.hadoop.` prefix
URL: https://github.com/apache/incubator-celeborn/pull/1629


-- 
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@celeborn.apache.org

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


[GitHub] [incubator-celeborn] AngersZhuuuu commented on pull request #1629: [CELEBORN-718] Celeborn generate hadoop configuration should respect Celeborn conf

Posted by "AngersZhuuuu (via GitHub)" <gi...@apache.org>.
AngersZhuuuu commented on PR #1629:
URL: https://github.com/apache/incubator-celeborn/pull/1629#issuecomment-1608924098

   ping @waitinfuture @pan3793 


-- 
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@celeborn.apache.org

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


[GitHub] [incubator-celeborn] pan3793 commented on a diff in pull request #1629: [CELEBORN-718] Celeborn generate hadoop configuration should respect Celeborn conf

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #1629:
URL: https://github.com/apache/incubator-celeborn/pull/1629#discussion_r1243309760


##########
worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/StorageManager.scala:
##########
@@ -129,8 +129,8 @@ final private[worker] class StorageManager(conf: CelebornConf, workerSource: Abs
     if (!hdfsDir.isEmpty) {
       val path = new Path(hdfsDir)
       val scheme = path.toUri.getScheme
-      val disableCacheName = String.format("fs.%s.impl.disable.cache", scheme);
-      val hdfsConfiguration = new Configuration
+      val disableCacheName = String.format("fs.%s.impl.disable.cache", scheme)
+      val hdfsConfiguration = CelebornHadoopUtils.newConfiguration(conf)

Review Comment:
   I'm fine with this. cc @FMX too, seems no HDFS docs now, this should be documented clearly, otherwise may confuse Spark users, especially those who run Spark on K8s, because there were some issues on Hadoop Conf propagation in Spark on K8s, the user is likely configure Hadoop through `spark.hadoop.*` in `spark-defaults.conf` instead of `core-site.xml`



##########
worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/StorageManager.scala:
##########
@@ -129,8 +129,8 @@ final private[worker] class StorageManager(conf: CelebornConf, workerSource: Abs
     if (!hdfsDir.isEmpty) {
       val path = new Path(hdfsDir)
       val scheme = path.toUri.getScheme
-      val disableCacheName = String.format("fs.%s.impl.disable.cache", scheme);
-      val hdfsConfiguration = new Configuration
+      val disableCacheName = String.format("fs.%s.impl.disable.cache", scheme)
+      val hdfsConfiguration = CelebornHadoopUtils.newConfiguration(conf)

Review Comment:
   I'm fine with this. cc @FMX too, seems no HDFS docs now, this should be documented clearly, otherwise may confuse Spark users, especially those who run Spark on K8s, because there were some issues on Hadoop Conf propagation in Spark on K8s, the user is likely to configure Hadoop through `spark.hadoop.*` in `spark-defaults.conf` instead of `core-site.xml`



-- 
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@celeborn.apache.org

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