Skip to content
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

[CARBONDATA-2752][CARBONSTORE] Carbon provide Zeppelin support #2522

Closed
wants to merge 7 commits into from

Conversation

ajithme
Copy link
Contributor

@ajithme ajithme commented Jul 18, 2018

Apache Zeppelin is a popular open web-based notebook that enables interactive data analytics. This is one of the favored solutions for providing UI frontend as it can support solutions like Spark already. Carbon can leverage this to provide a UI for its operations. After CARBONDATA-2688 which provides a carbon REST server, we can add a UI support from zeppelin to provide a complete solution.

  • Document update required? YES, need to update usage guide for Zeppelin integration

  • Testing done

  1. Added UT
  2. Done Testing manually by integration with Zeppelin
    image

@ravipesala
Copy link
Contributor

Can one of the admins verify this patch?

2 similar comments
@CarbonDataQA
Copy link

Can one of the admins verify this patch?

@CarbonDataQA
Copy link

Can one of the admins verify this patch?

rows = SparkSqlWrapper.sql(SqlHorizon.getSession(), request.getSqlStatement())
sqlDataFrame = SparkSqlWrapper.sql(SqlHorizon.getSession(),
request.getSqlStatement());
rows = sqlDataFrame
.collectAsList();
Copy link
Contributor

Choose a reason for hiding this comment

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

move it to previous line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

.collectAsList();
} catch (AnalysisException e) {
throw new StoreException(e.getSimpleMessage());
} catch (Exception e) {
throw new StoreException(e.getMessage());
}
Object[][] result = new Object[rows.size()][];
Object[][] result = new Object[rows.size()+1][];
Copy link
Contributor

Choose a reason for hiding this comment

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

add space before and after +

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

for (int j = 0; j < row.size(); j++) {
result[i][j] = row.get(j);
result[i+1][j] = row.get(j);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't use System.arraycopy?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

.collectAsList();
} catch (AnalysisException e) {
throw new StoreException(e.getSimpleMessage());
} catch (Exception e) {
throw new StoreException(e.getMessage());
}
Object[][] result = new Object[rows.size()][];
Object[][] result = new Object[rows.size()+1][];
result[0] = sqlDataFrame.schema().fieldNames();
for (int i = 0; i < rows.size(); i++) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I can start from 1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

replaced with stream construct

@chenliang613
Copy link
Contributor

add to whitelist

@@ -0,0 +1,18 @@
Please follow below steps to integrate with zeppelin
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. please use .md format
  2. Please add apache license header also.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@CarbonDataQA
Copy link

Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/7295/

@CarbonDataQA
Copy link

Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/7297/

@CarbonDataQA
Copy link

Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/6064/

@CarbonDataQA
Copy link

Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/7300/

@CarbonDataQA
Copy link

Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/6067/

@CarbonDataQA
Copy link

Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/6089/

@CarbonDataQA
Copy link

Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/7323/

@@ -0,0 +1,18 @@
Please follow below steps to integrate with zeppelin
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this README written for carbon specificly?

@@ -0,0 +1,37 @@
<assembly>
Copy link
Contributor

Choose a reason for hiding this comment

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

please move zeppelin folder to integration folder

*/
public class CarbonInterpreter extends Interpreter {

public static final Logger logger = LoggerFactory.getLogger(CarbonInterpreter.class);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use Carbon's LogService

@CarbonDataQA
Copy link

Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/7352/

@CarbonDataQA
Copy link

Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/6116/

asfgit pushed a commit that referenced this pull request Jul 23, 2018
@ajithme
Copy link
Contributor Author

ajithme commented Aug 20, 2018

Merged

@ajithme ajithme closed this Aug 20, 2018
xubo245 pushed a commit to xubo245/carbondata that referenced this pull request Aug 30, 2018
xubo245 pushed a commit to xubo245/carbondata that referenced this pull request Aug 30, 2018
xubo245 pushed a commit to xubo245/carbondata that referenced this pull request Sep 3, 2018
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.

None yet

5 participants