Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove py/cpp/r/php
  • Loading branch information
AngersZhuuuu committed Oct 23, 2019
commit b74d5e08f9f22f41bc57031a19b691e61d8a91de
7 changes: 6 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@
<spark.test.home>${session.executionRootDirectory}</spark.test.home>

<CodeCacheSize>1g</CodeCacheSize>

<!-- Thrift properties -->
<thrift.home>you-must-set-this-to-run-thrift</thrift.home>
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it need to be set, or can Maven find thrift from PATH? Or even better, do the generation via libthrift from maven central itself?

<thrift.gen.dir>${basedir}/src/gen/thrift</thrift.gen.dir>
<thrift.args>-I ${thrift.home} --gen java:beans,hashcode,generated_annotations=undated</thrift.args>
Copy link
Contributor

Choose a reason for hiding this comment

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

(just asking, I don't know maven): should this be set in global pom, or in thriftserver pom? How can this be used?

If it requires setting it manually in your pom, and the generated files are committed anyway, they I would not do it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(just asking, I don't know maven): should this be set in global pom, or in thriftserver pom? How can this be used?

If it requires setting it manually in your pom, and the generated files are committed anyway, they I would not do it.

Current same as hive, make it like antlr4 is best but I may need some help... since I am particularly good at maven various plugin, I am learning the hive's approach.

Copy link
Member

Choose a reason for hiding this comment

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

@juliuszsompolski Please see this PR: AngersZhuuuu#2

</properties>
<repositories>
<repository>
Expand Down Expand Up @@ -3100,7 +3105,7 @@
<target>
<taskdef name="for" classname="net.sf.antcontrib.logic.ForTask"
classpathref="maven.plugin.classpath" />
<property name="thrift.args" value="-I ${thrift.home} --gen java:beans,hashcode,generated_annotations=undated --gen cpp --gen php --gen py --gen rb"/>
<property name="thrift.args" value="-I ${thrift.home} --gen java:beans,hashcode,generated_annotations=undated"/>
<property name="thrift.gen.dir" value="${basedir}/src/gen/thrift"/>
<delete dir="${thrift.gen.dir}"/>
<mkdir dir="${thrift.gen.dir}"/>
Expand Down
3 changes: 0 additions & 3 deletions sql/thriftserver/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
Thrift commands to generate files from TCLIService.thrift:
--------------------
thrift --gen java:beans,hashcode -o src/gen/thrift if/TCLIService.thrift
thrift --gen cpp -o src/gen/thrift if/TCLIService.thrift
thrift --gen py -o src/gen/thrift if/TCLIService.thrift
thrift --gen rb -o src/gen/thrift if/TCLIService.thrift
4 changes: 0 additions & 4 deletions sql/thriftserver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
<url>http://spark.apache.org/</url>
<properties>
<sbt.project.name>thriftserver</sbt.project.name>
<!-- Thrift properties -->
<thrift.home>you-must-set-this-to-run-thrift</thrift.home>
<thrift.gen.dir>${basedir}/src/gen/thrift</thrift.gen.dir>
<thrift.args>-I ${thrift.home} --gen java:beans,hashcode,generated_annotations=undated --gen cpp --gen php --gen py --gen rb</thrift.args>
</properties>

<dependencies>
Expand Down
Loading