1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
Summary: Hive 0.10.0, Apache Hive, Rpm by Xianglei, include mysql jdbc connector and fixed hive-
exec
.jar
for
get_json_object judgement of quotation and double qoutation
Name: hive
Version: 0.10.0
Release: 1
License: Apache License 2.0
Group: System
Source: hive-0.10.0.
tar
.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Url: http:
//www
.phphiveadmin.net
Packager: Xianglei
BuildArchitectures: noarch
Requires: jdk >= 1.6, hadoop
%define bin_dir
/usr/bin
%define lib_dir
/usr/lib
%define conf_dir
/etc/hive
%define scripts_dir
/usr/share/scripts
%description
Apache Hive phpHiveAdmin release
%prep
%setup -q -n %{name}-%{version}
%build
%
install
%__rm -rf $RPM_BUILD_ROOT
%__mkdir -p $RPM_BUILD_ROOT/%{bin_dir}/
%__mkdir -p $RPM_BUILD_ROOT/%{lib_dir}/
%__mkdir -p $RPM_BUILD_ROOT/%{conf_dir}/
%__mkdir -p $RPM_BUILD_ROOT/%{scripts_dir}/
%__cp -rf bin/* $RPM_BUILD_ROOT/%{bin_dir}/
%__cp -f HivePlugin.jar $RPM_BUILD_ROOT/%{lib_dir}/
%__cp -rf lib/* $RPM_BUILD_ROOT/%{lib_dir}/
%__cp -rf conf/* $RPM_BUILD_ROOT/%{conf_dir}/
%__cp -rf scripts/* $RPM_BUILD_ROOT/%{scripts_dir}/
useradd
-g hadoop hive
%files
%defattr(-,root,root)
%config(noreplace) %{conf_dir}
/hive-site
.xml
%config(noreplace) %{conf_dir}
/hive-env
.sh
%{bin_dir}/*
%{lib_dir}/*
%{conf_dir}/*
%{scripts_dir}/*
%clean
%__rm -rf $RPM_BUILD_ROOT
|
Hadoop运维记录系列(七)
最新推荐文章于 2022-05-31 18:50:31 发布