Skip to content

chore(pegasus-spark): Merge pegasus-spark from pegasus-kv/pegasus-spark #2206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 45 commits into
base: master
Choose a base branch
from

Conversation

ruojieranyishen
Copy link
Collaborator

@ruojieranyishen ruojieranyishen commented Mar 12, 2025

#945

Within Xiaomi, there have been many updates to Pegasus-spark. The code needs to be merged into the main branch.

Step:

  1. Merge pegasus-spark into incubator-pegasus
  2. Use org/apache/pegasus to replace com/xiaomi/infra/pegasus.

neverchanje and others added 30 commits October 31, 2019 17:58
…apache#7)

* reimplement API using RDD-style model & implement DuplicationVerifier

* fix review

* add comment

* add comment

* add comments

* fix

* fix

* add comment
* fix travis

* refactor: format codes using scalafmt
@ruojieranyishen ruojieranyishen changed the title Merge pegasus spark chore(pegasus-spark): Merge pegasus-spark from pegasus-kv/pegasus-spark Mar 12, 2025
@acelyc111
Copy link
Member

@ruojieranyishen Good job!

Please fix the license header issues, see: https://github.com/apache/incubator-pegasus/actions/runs/13805996590/job/38616785844?pr=2206.

@github-actions github-actions bot removed the scripts label Mar 17, 2025
@@ -0,0 +1,25 @@
# Licensed to the Apache Software Foundation (ASF) under one
Copy link
Member

Choose a reason for hiding this comment

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

I think this file is useless because we dodn't use Travis for CI, instead, we use Github actions.

@@ -76,6 +76,7 @@ Pegasus has support for several languages:
- [Python](https://github.com/apache/incubator-pegasus/blob/master/python-client)
- [Node.js](https://github.com/apache/incubator-pegasus/blob/master/nodejs-client)
- [Scala](https://github.com/apache/incubator-pegasus/blob/master/scala-client)
- [pegasus-spark](https://github.com/apache/incubator-pegasus/blob/master/pegasus-spark)
Copy link
Member

Choose a reason for hiding this comment

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

Is pegasus-spark a client driver? Move it to another section if it's not.

# ================= #
pegasus-spark/*.class
# Log file
pegasus-spark/*.log
Copy link
Member

Choose a reason for hiding this comment

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

It would be nice it keep them in lexicographical order, thanks!

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.xiaomi.infra</groupId>
Copy link
Member

Choose a reason for hiding this comment

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

Update it to org.apache....


<groupId>com.xiaomi.infra</groupId>
<artifactId>pegasus-spark</artifactId>
<version>1.1.0-mdh-2.3.0-SNAPSHOT</version>
Copy link
Member

Choose a reason for hiding this comment

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

Use a completely new version because it's in a new group.

<repository>
<id>central</id>
<name>maven-release-virtual</name>
<url>https://pkgs.d.xiaomi.net/artifactory/maven-release-virtual</url>
Copy link
Member

Choose a reason for hiding this comment

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

Don't use xiaomi any more.

</exclusion>
</exclusions>
</dependency>
<!--FDS: Only read fds backup need the dependency-->
Copy link
Member

Choose a reason for hiding this comment

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

Let's implement the HDFS target at first, because most users can not use FDS.

PROJECT_DIR=$(dirname "${SCRIPT_DIR}")
cd "${PROJECT_DIR}" || exit 1

SRC_FILES=(src/main/java/com/xiaomi/infra/pegasus/spark/common/*.java
Copy link
Member

Choose a reason for hiding this comment

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

update the paths to org/apache/pegasus/...

@@ -0,0 +1,43 @@
#!/usr/bin/env bash
Copy link
Member

Choose a reason for hiding this comment

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

Please use Github action instead, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants