Skip to content

Conversation

@yl09099
Copy link
Contributor

@yl09099 yl09099 commented Dec 5, 2023

What changes were proposed in this pull request?

simplify dependency and correct the startup script.

Why are the changes needed?

(Please clarify why the changes are needed. For instance,

Fix: #960

Does this PR introduce any user-facing change?

(Please list the user-facing changes introduced by your change, including

No.

How was this patch tested?

Needn't.

@yl09099 yl09099 changed the title Uniffle 960 5 [#960] fix(dashboard): simplify dependency and correct the startup script Dec 5, 2023
@jerqi jerqi requested a review from xianjingfeng December 5, 2023 08:33
@jerqi
Copy link
Contributor

jerqi commented Dec 5, 2023

What's this pr the relationship of #1326

@yl09099
Copy link
Contributor Author

yl09099 commented Dec 5, 2023

#1326

Some fixes based on PR #1326.I'm making changes after the merger.

@yl09099
Copy link
Contributor Author

yl09099 commented Dec 11, 2023

@zuston @xianjingfeng @jerqi Modify the dashboard pom dependencies, modify the startup script to be independent of Hadoop, and separate the dashboard configuration file from the Coordinator configuration file so that it can be deployed independently.

@codecov-commenter
Copy link

codecov-commenter commented Dec 11, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ecbf2e7) 53.22% compared to head (1d8942d) 54.13%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1347      +/-   ##
============================================
+ Coverage     53.22%   54.13%   +0.90%     
  Complexity     2715     2715              
============================================
  Files           418      398      -20     
  Lines         23932    21571    -2361     
  Branches       2043     2043              
============================================
- Hits          12738    11677    -1061     
+ Misses        10408     9180    -1228     
+ Partials        786      714      -72     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

zuston
zuston previously approved these changes Dec 11, 2023
Copy link
Member

@zuston zuston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@xianjingfeng
Copy link
Member

xianjingfeng commented Dec 11, 2023

Could you fix these two problems in this pr? @yl09099
#1339 (comment)

@yl09099
Copy link
Contributor Author

yl09099 commented Dec 11, 2023

Could you fix these two problems in this pr? @yl09099 #1339 (comment)

This has been modified.

@xianjingfeng
Copy link
Member

xianjingfeng commented Dec 11, 2023

Could you fix these two problems in this pr? @yl09099 #1339 (comment)

This has been modified.

It seems that one of them was fixed. But we still must set the env HADOOP_HOME, right?

@yl09099
Copy link
Contributor Author

yl09099 commented Dec 11, 2023

Could you fix these two problems in this pr? @yl09099 #1339 (comment)

This has been modified.

It seems that one of them was fixed. But we still must set the env HADOOP_HOME, right?

I have deleted the HDFS configuration in start-dashboard and do not need to set HADOOP_HOME on dashboard.

@xianjingfeng
Copy link
Member

Could you fix these two problems in this pr? @yl09099 #1339 (comment)

This has been modified.

It seems that one of them was fixed. But we still must set the env HADOOP_HOME, right?

I have deleted the HDFS configuration in start-dashboard and do not need to set HADOOP_HOME on dashboard.

Is there anything problems with the following code?
https://github.com/apache/incubator-uniffle/blob/ecbf2e79423505dd44bf54c612572c5c9da71175/bin/utils.sh#L175-L178

@yl09099
Copy link
Contributor Author

yl09099 commented Dec 12, 2023

Could you fix these two problems in this pr? @yl09099 #1339 (comment)

This has been modified.

It seems that one of them was fixed. But we still must set the env HADOOP_HOME, right?

I have deleted the HDFS configuration in start-dashboard and do not need to set HADOOP_HOME on dashboard.

Is there anything problems with the following code?

https://github.com/apache/incubator-uniffle/blob/ecbf2e79423505dd44bf54c612572c5c9da71175/bin/utils.sh#L175-L178

Learned, changed

@yl09099 yl09099 force-pushed the uniffle-960-5 branch 2 times, most recently from db54e97 to de7a153 Compare December 12, 2023 03:55
bin/utils.sh Outdated
Comment on lines 180 to 187
if [[ $is_dashboard -eq 0 || -z "$HADOOP_HOME" ]]; then
echo "Dashboard need not HADOOP_HOME."
elif [[ -z "$HADOOP_HOME" ]]; then
echo "No env HADOOP_HOME."
exit 1
fi
Copy link
Member

@xianjingfeng xianjingfeng Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if [[ $is_dashboard -eq 0 || -z "$HADOOP_HOME" ]]; then
echo "Dashboard need not HADOOP_HOME."
elif [[ -z "$HADOOP_HOME" ]]; then
echo "No env HADOOP_HOME."
exit 1
fi
if [[ -z "$HADOOP_HOME" ]]; then
if [[ $is_dashboard -eq 1 ]]; then
echo "Dashboard need not HADOOP_HOME."
else
echo "No env HADOOP_HOME."
exit 1
fi
fi

bin/utils.sh Outdated
Comment on lines 155 to 158
is_dashboard=1
if [ $# -eq 1 ]; then
is_dashboard=$1
fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
is_dashboard=1
if [ $# -eq 1 ]; then
is_dashboard=$1
fi
is_dashboard=0
if [ $# -eq 1 ]; then
is_dashboard=1
fi

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zuston @jerqi Do you have any idea about this part?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have no better idea. Follow your suggestion.

Copy link
Member

@xianjingfeng xianjingfeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zuston zuston merged commit 3b0cbb9 into apache:master Dec 13, 2023
@zuston
Copy link
Member

zuston commented Dec 13, 2023

Thanks @yl09099 @xianjingfeng

lifeSo added a commit to lifeSo/incubator-uniffle that referenced this pull request Dec 22, 2023
* master: (23 commits)
  format
  use synchronized
  format
  modify to singleton
  format
  format
  format
  format
  format
  change Coordinator to singleton like ShuffleServerClientFactory.java
  [apache#1189] feat(server): Add netty used direct memory size metric (apache#1363)
  format
  format
  format
  rename
  file rename
  [apache#960] fix(dashboard): simplify dependency and correct the startup script (apache#1347)
  [apache#1348] improvement(metrics): Unify tags generation for shuffle-server metrics reporter (apache#1349)
  [MINOR] chore: fix kubernetes ci pipeline (apache#1368)
  [MINOR] fix(spark): Fix NPE for ShuffleWriteClientImpl.unregisterShuffle (apache#1367)
  ...
lifeSo added a commit to lifeSo/incubator-uniffle that referenced this pull request Dec 26, 2023
…re_1119_new_2023_12_23

* feature_1119_BUFFER_LIMIT_OF_HUGE_PARTITION:
  add file for commit
  [apache#1189] feat(server): Add netty used direct memory size metric (apache#1363)
  format
  format
  format
  rename
  file rename
  [apache#960] fix(dashboard): simplify dependency and correct the startup script (apache#1347)
  [apache#1348] improvement(metrics): Unify tags generation for shuffle-server metrics reporter (apache#1349)
  [MINOR] chore: fix kubernetes ci pipeline (apache#1368)
  [MINOR] fix(spark): Fix NPE for ShuffleWriteClientImpl.unregisterShuffle (apache#1367)
  format code
  format code
  添加堆外内存监控的代码
zuston pushed a commit to zuston/incubator-uniffle that referenced this pull request Jan 18, 2024
…tup script (apache#1347)

### What changes were proposed in this pull request?

simplify dependency and correct the startup script.

### Why are the changes needed?

Fix: apache#960 

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Needn't.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Umbrella] Uniffle needs to add a WebUI page

5 participants