Skip to content

[SPARK-20600][SS] KafkaRelation should be pretty printed in web UI#17917

Closed
jaceklaskowski wants to merge 3 commits intoapache:masterfrom
jaceklaskowski:SPARK-20600-KafkaRelation-webUI
Closed

[SPARK-20600][SS] KafkaRelation should be pretty printed in web UI#17917
jaceklaskowski wants to merge 3 commits intoapache:masterfrom
jaceklaskowski:SPARK-20600-KafkaRelation-webUI

Conversation

@jaceklaskowski
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

User-friendly name of KafkaRelation in web UI (under Details for Query).

Before

spark-20600-before

After

spark-20600-after

How was this patch tested?

Local build

./bin/spark-shell --jars ~/.m2/repository/org/apache/spark/spark-sql-kafka-0-10_2.11/2.3.0-SNAPSHOT/spark-sql-kafka-0-10_2.11-2.3.0-SNAPSHOT.jar --packages org.apache.kafka:kafka-clients:0.10.0.1

@SparkQA
Copy link
Copy Markdown

SparkQA commented May 9, 2017

Test build #76662 has finished for PR 17917 at commit 2ffe447.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

}

override def toString: String = "kafka"
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hehe...been thinking about it too, but thought it'd be too much for such a simple change.

It merits a JIRA issue though where one had to find out what and how to display. After all, you could read from multiple topics with different Kafka brokers and offsets. I was worried it'd be too much to handle as part of this issue.

I'm up for working on the other issue, but don't think we should hold this one up. WDYT?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How about this? Just show the most important parameters like s"KafkaRelation(strategy=$strategy, start=$startingOffsets, end=$endingOffsets)"?

@jaceklaskowski
Copy link
Copy Markdown
Contributor Author

spark-kafkarelation

@SparkQA
Copy link
Copy Markdown

SparkQA commented May 11, 2017

Test build #76817 has finished for PR 17917 at commit 1a0e49e.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@zsxwing
Copy link
Copy Markdown
Member

zsxwing commented May 11, 2017

LGTM. Merging to master and 2.2. Thanks!

asfgit pushed a commit that referenced this pull request May 11, 2017
## What changes were proposed in this pull request?

User-friendly name of `KafkaRelation` in web UI (under Details for Query).

### Before

<img width="516" alt="spark-20600-before" src="https://cloud.githubusercontent.com/assets/62313/25841955/74479ac6-34a2-11e7-87fb-d9f62a1356a7.png">

### After

<img width="439" alt="spark-20600-after" src="https://cloud.githubusercontent.com/assets/62313/25841829/f5335630-34a1-11e7-85a4-afe9b66d73c8.png">

## How was this patch tested?

Local build

```
./bin/spark-shell --jars ~/.m2/repository/org/apache/spark/spark-sql-kafka-0-10_2.11/2.3.0-SNAPSHOT/spark-sql-kafka-0-10_2.11-2.3.0-SNAPSHOT.jar --packages org.apache.kafka:kafka-clients:0.10.0.1
```

Author: Jacek Laskowski <jacek@japila.pl>

Closes #17917 from jaceklaskowski/SPARK-20600-KafkaRelation-webUI.

(cherry picked from commit 7144b51)
Signed-off-by: Shixiong Zhu <shixiong@databricks.com>
@asfgit asfgit closed this in 7144b51 May 11, 2017
@jaceklaskowski jaceklaskowski deleted the SPARK-20600-KafkaRelation-webUI branch May 12, 2017 09:17
robert3005 pushed a commit to palantir/spark that referenced this pull request May 19, 2017
## What changes were proposed in this pull request?

User-friendly name of `KafkaRelation` in web UI (under Details for Query).

### Before

<img width="516" alt="spark-20600-before" src="https://cloud.githubusercontent.com/assets/62313/25841955/74479ac6-34a2-11e7-87fb-d9f62a1356a7.png">

### After

<img width="439" alt="spark-20600-after" src="https://cloud.githubusercontent.com/assets/62313/25841829/f5335630-34a1-11e7-85a4-afe9b66d73c8.png">

## How was this patch tested?

Local build

```
./bin/spark-shell --jars ~/.m2/repository/org/apache/spark/spark-sql-kafka-0-10_2.11/2.3.0-SNAPSHOT/spark-sql-kafka-0-10_2.11-2.3.0-SNAPSHOT.jar --packages org.apache.kafka:kafka-clients:0.10.0.1
```

Author: Jacek Laskowski <jacek@japila.pl>

Closes apache#17917 from jaceklaskowski/SPARK-20600-KafkaRelation-webUI.
lycplus pushed a commit to lycplus/spark that referenced this pull request May 24, 2017
## What changes were proposed in this pull request?

User-friendly name of `KafkaRelation` in web UI (under Details for Query).

### Before

<img width="516" alt="spark-20600-before" src="https://cloud.githubusercontent.com/assets/62313/25841955/74479ac6-34a2-11e7-87fb-d9f62a1356a7.png">

### After

<img width="439" alt="spark-20600-after" src="https://cloud.githubusercontent.com/assets/62313/25841829/f5335630-34a1-11e7-85a4-afe9b66d73c8.png">

## How was this patch tested?

Local build

```
./bin/spark-shell --jars ~/.m2/repository/org/apache/spark/spark-sql-kafka-0-10_2.11/2.3.0-SNAPSHOT/spark-sql-kafka-0-10_2.11-2.3.0-SNAPSHOT.jar --packages org.apache.kafka:kafka-clients:0.10.0.1
```

Author: Jacek Laskowski <jacek@japila.pl>

Closes apache#17917 from jaceklaskowski/SPARK-20600-KafkaRelation-webUI.
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.

4 participants