talimat 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. [paket]
  2. tanim = Apache Hadoop dağıtık dosya sistemi
  3. paketci = milisarge
  4. grup = büyükveri
  5. url = http://hadoop.apache.org
  6. [gerek]
  7. derleme = cmake cyrus-sasl libtirpc maven openjdk8 protobuf2
  8. calisma = openjdk8
  9. [kaynak]
  10. 1 = https://www.apache.org/dist/hadoop/core/$isim-$surum/$isim-$surum-src.tar.gz
  11. dosya = $isim-profile.sh
  12. dosya = $isim-strip.sh
  13. dosya = core-site.xml
  14. dosya = hadoop-env.sh
  15. dosya = hdfs-site.xml
  16. dosya = yarn-site.xml
  17. dosya = mapred-site.xml
  18. dosya = HADOOP-15685.001.patch
  19. [sha256]
  20. 1 = 3bd31357c047bf85cf18356df1405b5f4c36f87caa27f519fb8ef4fdd6750324
  21. 2 = d1870f780567657a6d1e0d689a98aa9468f96cd646c36668c7a407f976fdd6e0
  22. [derle]
  23. betik = cd $isim-$surum-src
  24. betik = export JAVA_HOME=/usr/lib/jvm/java-8-openjdk
  25. betik = export PATH=$PATH:/usr/local/bin
  26. betik = make-ca -g
  27. betik = patch -p1 -i $SRC/HADOOP-15685.001.patch
  28. betik = mvn -e package -Pdist,native -DskipTests -Dsource.skip -Dtar -Dmaven.javadoc.skip=true -Dmaven.repo.local=/opt/m2/repository
  29. [pakur]
  30. betik = cd $isim-$surum-src
  31. betik = mkdir -p $PKG/usr/mdp/hadoop
  32. betik = cp -r hadoop-dist/target/$isim-$surum/{bin,etc,include,lib,libexec,sbin,share} $PKG/usr/mdp/hadoop/
  33. betik = mkdir -p $PKG/etc/profile.d
  34. betik = cp $SRC/$isim-profile.sh $PKG/etc/profile.d/$isim.sh
  35. betik = cp -f $SRC/*.xml $PKG/usr/mdp/hadoop/etc/hadoop
  36. betik = cp -f $SRC/hadoop-env.sh $PKG/usr/mdp/hadoop/etc/hadoop/
  37. betik = sed -i '19i LC_ALL=C' $PKG/usr/mdp/hadoop/libexec/hadoop-functions.sh
  38. ; stripping redundant jars
  39. betik = rm -f $PKG/usr/mdp/hadoop/share/hadoop/tools/lib/{*aliyun*,*aws*,*azure*,*openstack*,*s3guard*,*gridmix*}
  40. betik = rm -f $PKG//usr/mdp/hadoop/share/hadoop/client/hadoop-client-minicluster-*.jar
  41. betik = find $PKG/usr/mdp/hadoop -name *tests* -delete