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

[WIP] ZEPPELIN-1571. Support pig udf interpreter #1545

Closed
wants to merge 5 commits into from

Conversation

zjffdu
Copy link
Contributor

@zjffdu zjffdu commented Oct 21, 2016

What is this PR for?

Support a new interpreter %pig.udf for Pig Interpreter group. User can write pig udf in this interpreter, and will compile/build this udf to jar which would be registered in pig automatically.

What type of PR is it?

[Feature]

Todos

  • - Task

What is the Jira issue?

How should this be tested?

Unit test is added

Screenshots (if appropriate)

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

@zjffdu
Copy link
Contributor Author

zjffdu commented Oct 21, 2016

@felixcheung @AhyoungRyu Please help review

</systemPropertyVariables>
</configuration>
</plugin>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is for test in PigUDFInterpreterTest


package org.apache.zeppelin.pig;

import com.thoughtworks.qdox.JavaProjectBuilder;
Copy link
Member

Choose a reason for hiding this comment

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

whats the license of this qdox library?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

we need to add that to LICENSE file?

@zjffdu
Copy link
Contributor Author

zjffdu commented Oct 21, 2016

@minahlee The syntax highlight for java doesn't work, could you help to check what's I missing here ? Thanks

@minahlee
Copy link
Member

js file for java syntax highlight(mode-java.js) is never used before so you will need to import it first.
Here are the files where mode-java.js should be added:
https://github.com/apache/zeppelin/blob/master/zeppelin-web/src/index.html#L123
https://github.com/apache/zeppelin/blob/master/zeppelin-web/bower.json#L51

@zjffdu
Copy link
Contributor Author

zjffdu commented Oct 21, 2016

Thanks @minahlee It works now.

LOGGER.debug("pig udf jar is created under " + tmpJarFile.getAbsolutePath());
return tmpJarFile;
} catch (IOException e) {
throw e;
Copy link
Member

Choose a reason for hiding this comment

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

add LOGGER.error

@felixcheung
Copy link
Member

2 comments, LGTM otherwise.

@Malian
Copy link

Malian commented Mar 2, 2017

@zjffdu What's the status of this pull request ? Can we expect it will be merged soon ? Thank you !

@AhyoungRyu
Copy link
Contributor

@zjffdu Sadly there are some conflicts now. Could you resolve them?

@zjffdu zjffdu changed the title ZEPPELIN-1571. Support pig udf interpreter [WIP] ZEPPELIN-1571. Support pig udf interpreter Mar 5, 2017
@zjffdu
Copy link
Contributor Author

zjffdu commented Mar 5, 2017

@AhyoungRyu @felixcheung I changed this PR to WIP. As there's still one issue I need to fix. The issue is that if user change the udf, the class can not been reloading unless restarting the interpreter. I need to fix this classloading issue in pig side first, then I will continue this PR.

@asfgit asfgit closed this in c38a0a0 May 9, 2018
asfgit pushed a commit that referenced this pull request May 9, 2018
close #83
close #86
close #125
close #133
close #139
close #146
close #193
close #203
close #246
close #262
close #264
close #273
close #291
close #299
close #320
close #347
close #389
close #413
close #423
close #543
close #560
close #658
close #670
close #728
close #765
close #777
close #782
close #783
close #812
close #822
close #841
close #843
close #878
close #884
close #918
close #989
close #1076
close #1135
close #1187
close #1231
close #1304
close #1316
close #1361
close #1385
close #1390
close #1414
close #1422
close #1425
close #1447
close #1458
close #1466
close #1485
close #1492
close #1495
close #1497
close #1536
close #1545
close #1561
close #1577
close #1600
close #1603
close #1678
close #1695
close #1739
close #1748
close #1765
close #1767
close #1776
close #1783
close #1799
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.

5 participants