Browse Source

HUE-219. beeswax: Add a warning to regenerate_thrift.sh about removing old code

Todd Lipcon 15 năm trước cách đây
mục cha
commit
cefb435b27
1 tập tin đã thay đổi với 19 bổ sung0 xóa
  1. 19 0
      apps/beeswax/regenerate_thrift.sh

+ 19 - 0
apps/beeswax/regenerate_thrift.sh

@@ -23,5 +23,24 @@ cd $(dirname $0)
 thrift -I thrift/include -r --gen py:new_style -o ./ thrift/beeswax.thrift
 thrift -I thrift/include -r --gen java:hashcode -o java thrift/beeswax.thrift
 
+# We don't need to have generated code for the metastore, since that's
+# in one of the hive jars that we include
+rm -Rf java/gen-java/com/facebook java/gen-java/org/apache
+
+cat <<EOF
+======================================================================
+NOTE:
+======================================================================
+
+This script does *not* remove old generated files that may not be necessary anymore.
+You should probably do something like:
+ > git rm -Rf java/gen-java
+ > ./regenerate_thrift.sh
+ > git add java/gen-java
+
+======================================================================
+
+EOF
+
 # This is based on thirdparty.
 # thrift -r --gen py:new_style -o ../ ../../../../ext/thirdparty/py/thrift/contrib/fb303/if/fb303.thrift