当前位置: 首页 > news >正文

如何建立自己手机网站wordpress没小工具

如何建立自己手机网站,wordpress没小工具,活动策划案模板,如何把怎己做的网页放到网站上目录 1.前言 2.编译环境安装 3.下载源码编译 4.大包提前下载 5.报错处理 5.1.报错 5.2.报错 5.3.报错 5.4.报错 5.5.报错 5.6.报错 5.7.报错 6.编译成功 7.官方说明 1.前言 本文讲解了在纯净CentOS7环境下#xff0c;编译Ambari2.7.5所需进行的一系列操作及异常…目录 1.前言 2.编译环境安装 3.下载源码编译 4.大包提前下载 5.报错处理 5.1.报错 5.2.报错 5.3.报错 5.4.报错 5.5.报错 5.6.报错 5.7.报错 6.编译成功 7.官方说明 1.前言 本文讲解了在纯净CentOS7环境下编译Ambari2.7.5所需进行的一系列操作及异常处理。 附参考资料连接 编译官方说明 Ambari Development - Apache Ambari - Apache Software Foundation 部署官方说明 Installation Guide for Ambari 2.7.5 - Apache Ambari - Apache Software Foundation git地址https://github.com/apache/ambari 吐槽啊此版本对应的HDP3.1.5无法下载编译后也无法完成全部的部署…… 官方说明打开较慢为了方便大家文末附官方说明。 2.编译环境安装 yum install -y java-1.8.0-openjdk yum install -y gcc-c rpm-build git 下载maven新版3.6.3笔者实验时yum直接安装的maven是3.0.x会提示需要3.1.0以上 http://mirror.bit.edu.cn/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz tar xzvf apache-maven-3.6.3-bin.tar.gz #pip安装官方中说安装setuptools即可pip比较好装包含了setuptools curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python get-pip.py nodejs环境安装 yum install epel-release yum install nodejs -y 升级nodejs sudo npm install n -g sudo n stable vi ~/.bash_profile 添加 export PATH/usr/local/bin/:$PATH:/root/apache-maven-3.6.3/bin 再执行 source ~/.bash_profile 安装yarn curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo sudo yum install yarn npm install -g bower npm install -g gulp 3.下载源码编译 到Apache Download Mirrors 找到镜像服务器下载 https://mirrors.tuna.tsinghua.edu.cn/apache/ambari/ambari-2.7.5/apache-ambari-2.7.5-src.tar.gz 下载后解压 tar xfvz apache-ambari-2.7.5-src.tar.gz cd apache-ambari-2.7.5-src mvn versions:set -DnewVersion2.7.5.0.0pushd ambari-metrics mvn versions:set -DnewVersion2.7.5.0.0 popd#编译 mvn -B clean install rpm:rpm -DnewVersion2.7.5.0.0 -DbuildNumber5895e4ed6b30a2da8a90fee2403b6cab91d19972 -DskipTests -Dpython.verpython 2.6 apache-rat:check -Drat.numUnapprovedLicenses600 注 编译过程中失败继续从该项目编译即可mvn命令后添加参数如下后面的ambari-metrics-host-monitoring就是提示的项目名 mvn …… -rf :ambari-metrics-host-monitoring 觉得下载依赖包特别慢的可以添加阿里云镜像 vi pom.xml 添加相应节点 repositoriesrepositoryidaliyun/idurlhttps://maven.aliyun.com/repository/public/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/repositoryrepositoryidaliyun-apache snapshots/idurlhttps://maven.aliyun.com/repository/apache-snapshots/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/repositoryrepositoryidaliyun-central/idurlhttps://maven.aliyun.com/repository/central/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/repositoryrepositoryidaliyun-google/idurlhttps://maven.aliyun.com/repository/google/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/repositoryrepositoryidaliyun-gradle-plugin/idurlhttps://maven.aliyun.com/repository/gradle-plugin/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/repositoryrepositoryidaliyun-jcenter/idurlhttps://maven.aliyun.com/repository/jcenter/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/repositoryrepositoryidaliyun-spring/idurlhttps://maven.aliyun.com/repository/spring/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/repositoryrepositoryidaliyun-spring-plugin/idurlhttps://maven.aliyun.com/repository/spring-plugin/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/repositoryrepositoryidaliyun-public/idurlhttps://maven.aliyun.com/repository/public/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/repositoryrepositoryidaliyun-releases/idurlhttps://maven.aliyun.com/repository/releases/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/repositoryrepositoryidaliyun-snapshots/idurlhttps://maven.aliyun.com/repository/snapshots/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/repositoryrepositoryidaliyun-grails-core/idurlhttps://maven.aliyun.com/repository/grails-core/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/repositoryrepositoryidaliyun-mapr-public/idurlhttps://maven.aliyun.com/repository/mapr-public/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/repository /repositories pluginRepositoriespluginRepositoryidaliyun-plugin/idurlhttps://maven.aliyun.com/repository/public/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/pluginRepositorypluginRepositoryidaliyun-plugin-apache snapshots/idurlhttps://maven.aliyun.com/repository/apache-snapshots/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/pluginRepositorypluginRepositoryidaliyun-plugin-central/idurlhttps://maven.aliyun.com/repository/central/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/pluginRepositorypluginRepositoryidaliyun-plugin-google/idurlhttps://maven.aliyun.com/repository/google/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/pluginRepositorypluginRepositoryidaliyun-plugin-gradle-plugin/idurlhttps://maven.aliyun.com/repository/gradle-plugin/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/pluginRepositorypluginRepositoryidaliyun-plugin-jcenter/idurlhttps://maven.aliyun.com/repository/jcenter/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/pluginRepositorypluginRepositoryidaliyun-plugin-spring/idurlhttps://maven.aliyun.com/repository/spring/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/pluginRepositorypluginRepositoryidaliyun-plugin-spring-plugin/idurlhttps://maven.aliyun.com/repository/spring-plugin/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/pluginRepositorypluginRepositoryidaliyun-plugin-public/idurlhttps://maven.aliyun.com/repository/public/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/pluginRepositorypluginRepositoryidaliyun-plugin-releases/idurlhttps://maven.aliyun.com/repository/releases/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/pluginRepositorypluginRepositoryidaliyun-plugin-snapshots/idurlhttps://maven.aliyun.com/repository/snapshots/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/pluginRepositorypluginRepositoryidaliyun-plugin-grails-core/idurlhttps://maven.aliyun.com/repository/grails-core/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/pluginRepositorypluginRepositoryidaliyun-plugin-mapr-public/idurlhttps://maven.aliyun.com/repository/mapr-public/urlreleasesenabledtrue/enabled/releasessnapshotsenabledtrue/enabled/snapshots/pluginRepository /pluginRepositories 4.大包提前下载 hadoop等包 下载很慢可以提前下载 vi ambari-metrics/pom.xml 找到 hbase.tarhttps://s3.amazonaws.com/dev.hortonworks.com/HDP/centos7/3.x/BUILDS/3.1.4.0-315/tars/hbase/hbase-2.0.2.3.1.4.0-315-bin.tar.gz/hbase.tar hbase.folderhbase-2.0.2.3.1.4.0-315/hbase.folder hadoop.tarhttps://s3.amazonaws.com/dev.hortonworks.com/HDP/centos7/3.x/BUILDS/3.1.4.0-315/tars/hadoop/hadoop-3.1.1.3.1.4.0-315.tar.gz/hadoop.tar hadoop.folderhadoop-3.1.1.3.1.4.0-315/hadoop.folder grafana.foldergrafana-6.4.2/grafana.folder grafana.tarhttps://dl.grafana.com/oss/release/grafana-6.4.2.linux-amd64.tar.gz/grafana.tar phoenix.tarhttps://s3.amazonaws.com/dev.hortonworks.com/HDP/centos7/3.x/BUILDS/3.1.4.0-315/tars/phoenix/phoenix-5.0.0.3.1.4.0-315.tar.gz/phoenix.tar phoenix.folderphoenix-5.0.0.3.1.4.0-315/phoenix.folder 这一段用下载工具下载下来PS迅雷可以直接镜像加速在部署到自己本地的web服务器上再修改这个pom.xml中的url地址下载使用更快捷 5.报错处理 5.1.报错 [INFO] Downloading https://nodejs.org/dist/v4.5.0/node-v4.5.0-linux-x64.tar.gz to /root/.m2/repository/com/github/eirslett/node/4.5.0/node-4.5.0-linux-x64.tar.gz [INFO] No proxies configured [INFO] No proxy was configured, downloading directly [INFO] Unpacking /root/.m2/repository/com/github/eirslett/node/4.5.0/node-4.5.0-linux-x64.tar.gz into /root/apache-ambari-2.7.5-src/ambari-web/node/tmp …… [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.4:install-node-and-yarn (install node and yarn) on project ambari-web: Could not extract the Node archive: Could not extract archive: /root/.m2/repository/com/github/eirslett/node/4.5.0/node-4.5.0-linux-x64.tar.gz: EOFException - [Help 1] 解决 手动下载 curl -o /root/.m2/repository/com/github/eirslett/node/4.5.0/node-4.5.0-linux-x64.tar.gz https://nodejs.org/dist/v4.5.0/node-v4.5.0-linux-x64.tar.gz 5.2.报错 [ERROR] warning fsevents0.3.8: The platform linux is incompatible with this module. 解决 npm install pm2latest -g pm2 install pm2-slack 执行后上面的错误也还存在但是可以往下走这里发现了需要安装bower安装这个即可 安装bower的依赖包个人在ambari-admin/src/main/resources/ui/admin-web/下执行 bower install --allow-root 5.3.报错 Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check (default) on project ambari: Too many files with unapproved license: 1 See RAT report in: /root/apache-ambari-2.7.5-src/target/rat.txt - [Help 1] 解决采用方案二 一种方案是在新建的每一个类的第一行添加 /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * License); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ 第二种解决方案 在mvn命令中添加参数 apache-rat:check -Drat.numUnapprovedLicenses600 数字600是一个大于报错信息中的数量。 5.4.报错 ClassNotFoundException : Com.Sun.Jersey.Spi.Container.Servlet.ServletContainer 解决 vi ambari-metrics/ambari-metrics-timelineservice/pom.xml 添加依赖注意version与其他一致即可 dependency groupIdcom.sun.jersey/groupId artifactIdjersey-bundle/artifactId version1.11/version /dependency 5.5.报错 [exec] psutil/_psutil_linux.c:12:20: 致命错误Python.h没有那个文件或目录 [exec] #include Python.h [exec] ^ [exec] 编译中断。 [exec] error: command gcc failed with exit status 1 解决 yum install -y python-devel 5.6.报错 /root/apache-ambari-2.7.5-src/ambari-metrics/ambari-metrics-host-aggregator/src/test/java/org/apache/hadoop/metrics2/host/aggregator/AggregatorWebServiceTest.java:[22,33] 程序包com.sun.jersey.api.client不存在 解决 vi ambari-metrics/ambari-metrics-host-aggregator/pom.xml 添加依赖 dependency groupIdcom.sun.jersey/groupId artifactIdjersey-client/artifactId version1.11/version /dependency 5.7.报错 [ERROR] /root/apache-ambari-2.7.5-src/ambari-metrics/ambari-metrics-host-aggregator/src/test/java/org/apache/hadoop/metrics2/host/aggregator/AggregatorWebServiceTest.java:[31,34] 程序包org.codehaus.jackson.jaxrs不存在 [ERROR] /root/apache-ambari-2.7.5-src/ambari-metrics/ambari-metrics-host-aggregator/src/test/java/org/apache/hadoop/metrics2/host/aggregator/AggregatorWebServiceTest.java:[49,55] 找不到符号 符号: 类 JacksonJaxbJsonProvider 位置: 类 org.apache.hadoop.metrics2.host.aggregator.AggregatorWebServiceTest 解决 vi ambari-metrics/ambari-metrics-host-aggregator/pom.xml 添加依赖 dependency groupIdorg.codehaus.jackson/groupId artifactIdjackson-jaxrs/artifactId version1.9.13/version /dependency 注意要看清是codehaus的不是fasterxml的别添加错了 6.编译成功 [INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 0, approved: 17 licenses. [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Ambari Main 2.7.5.0.0 .............................. SUCCESS [ 5.378 s] [INFO] Apache Ambari Project POM 2.7.5.0.0 ................ SUCCESS [ 0.170 s] [INFO] Ambari Web 2.7.5.0.0 ............................... SUCCESS [01:00 min] [INFO] Ambari Views 2.7.5.0.0 ............................. SUCCESS [ 1.265 s] [INFO] Ambari Admin View 2.7.5.0.0 ........................ SUCCESS [ 26.880 s] [INFO] ambari-utility 1.0.0.0-SNAPSHOT .................... SUCCESS [ 15.939 s] [INFO] ambari-metrics 2.7.5.0.0 ........................... SUCCESS [ 0.626 s] [INFO] Ambari Metrics Common 2.7.5.0.0 .................... SUCCESS [ 4.607 s] [INFO] Ambari Metrics Hadoop Sink 2.7.5.0.0 ............... SUCCESS [ 2.358 s] [INFO] Ambari Metrics Flume Sink 2.7.5.0.0 ................ SUCCESS [ 1.527 s] [INFO] Ambari Metrics Kafka Sink 2.7.5.0.0 ................ SUCCESS [ 1.630 s] [INFO] Ambari Metrics Storm Sink 2.7.5.0.0 ................ SUCCESS [ 1.693 s] [INFO] Ambari Metrics Storm Sink (Legacy) 2.7.5.0.0 ....... SUCCESS [ 1.743 s] [INFO] Ambari Metrics Collector 2.7.5.0.0 ................. SUCCESS [02:56 min] [INFO] Ambari Metrics Monitor 2.7.5.0.0 ................... SUCCESS [ 2.459 s] [INFO] Ambari Metrics Grafana 2.7.5.0.0 ................... SUCCESS [ 1.618 s] [INFO] Ambari Metrics Host Aggregator 2.7.5.0.0 ........... SUCCESS [ 5.608 s] [INFO] Ambari Metrics Assembly 2.7.5.0.0 .................. SUCCESS [01:00 min] [INFO] Ambari Service Advisor 1.0.0.0-SNAPSHOT ............ SUCCESS [ 0.531 s] [INFO] Ambari Server 2.7.5.0.0 ............................ SUCCESS [03:25 min] [INFO] Ambari Functional Tests 2.7.5.0.0 .................. SUCCESS [ 0.550 s] [INFO] Ambari Agent 2.7.5.0.0 ............................. SUCCESS [ 51.679 s] [INFO] ambari-logsearch 2.7.5.0.0 ......................... SUCCESS [ 1.299 s] [INFO] Ambari Logsearch Appender 2.7.5.0.0 ................ SUCCESS [ 0.262 s] [INFO] Ambari Logsearch Config Api 2.7.5.0.0 .............. SUCCESS [ 0.239 s] [INFO] Ambari Logsearch Config JSON 2.7.5.0.0 ............. SUCCESS [ 0.196 s] [INFO] Ambari Logsearch Config Solr 2.7.5.0.0 ............. SUCCESS [ 0.199 s] [INFO] Ambari Logsearch Config Zookeeper 2.7.5.0.0 ........ SUCCESS [ 0.185 s] [INFO] Ambari Logsearch Config Local 2.7.5.0.0 ............ SUCCESS [ 0.182 s] [INFO] Ambari Logsearch Log Feeder Plugin Api 2.7.5.0.0 ... SUCCESS [ 0.179 s] [INFO] Ambari Logsearch Log Feeder Container Registry 2.7.5.0.0 SUCCESS [ 0.346 s] [INFO] Ambari Logsearch Log Feeder 2.7.5.0.0 .............. SUCCESS [ 3.645 s] [INFO] Ambari Logsearch Web 2.7.5.0.0 ..................... SUCCESS [ 55.186 s] [INFO] Ambari Logsearch Server 2.7.5.0.0 .................. SUCCESS [ 5.825 s] [INFO] Ambari Logsearch Assembly 2.7.5.0.0 ................ SUCCESS [ 0.176 s] [INFO] Ambari Logsearch Integration Test 2.7.5.0.0 ........ SUCCESS [ 0.887 s] [INFO] ambari-infra 2.7.5.0.0 ............................. SUCCESS [ 0.166 s] [INFO] Ambari Infra Solr Client 2.7.5.0.0 ................. SUCCESS [01:03 min] [INFO] Ambari Infra Solr Plugin 2.7.5.0.0 ................. SUCCESS [ 0.490 s] [INFO] Ambari Infra Manager 2.7.5.0.0 ..................... SUCCESS [ 5.827 s] [INFO] Ambari Infra Assembly 2.7.5.0.0 .................... SUCCESS [ 0.165 s] [INFO] Ambari Infra Manager Integration Tests 2.7.5.0.0 ... SUCCESS [ 1.310 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 12:51 min [INFO] Finished at: 2020-03-11T17:11:5408:00 [INFO] ------------------------------------------------------------------------成功 一系列漫长的折磨断断续续两三天终于成功了 总结教训 1.用阿里云镜像能加速很多 2.关注几个常用的编译工具问题出现在这些点上的时候要想到是不是他没安装的问题。 感慨啊 这么牛的开源项目还缺少maven依赖包配置也是醉了…… 7.官方说明 Build and install Ambari 2.7.5 Refer Ambari Development for prerequisites and additional information on how to build Apache Ambari. Step 1: Download and build Ambari 2.7.5 source Go to Apache Download Mirrors and find the suggested mirror for download. The process to verify the download is described is at Apache Downloads wget https://www-eu.apache.org/dist/ambari/ambari-2.7.5/apache-ambari-2.7.5-src.tar.gz (use the suggested mirror from above) tar xfvz apache-ambari-2.7.5-src.tar.gz cd apache-ambari-2.7.5-src mvn versions:set -DnewVersion2.7.5.0.0 pushd ambari-metrics mvn versions:set -DnewVersion2.7.5.0.0 popd RHEL (CentOS 7) SUSE (SLES 12 SP2 SP3): mvn -B clean install rpm:rpm -DnewVersion2.7.5.0.0 -DbuildNumber5895e4ed6b30a2da8a90fee2403b6cab91d19972 -DskipTests -Dpython.verpython 2.6 Ubuntu/Debian: mvn -B clean install jdeb:jdeb -DnewVersion2.7.5.0.0 -DbuildNumber5895e4ed6b30a2da8a90fee2403b6cab91d19972 -DskipTests -Dpython.verpython 2.6 Note: You need to have tools such as rpm-build tool, brunch, etc.  For details on prerequisites, please see Ambari Development. Step 2: Install Ambari Server Install the rpm package from ambari-server/target/rpm/ambari-server/RPMS/noarch/ [For CentOS 7] yum install ambari-server*.rpm    #This should also pull in postgres packages as well. [For SLES 12] zypper install ambari-server*.rpm    #This should also pull in postgres packages as well. [For Ubuntu/Debian] apt-get install ./ambari-server*.deb   #This should also pull in postgres packages as well. Step 3: Setup and Start Ambari Server Run the setup command to configure your Ambari Server, Database, JDK, LDAP, and other options: ambari-server setup Follow the on-screen instructions to proceed. Once set up is done, start Ambari Server: ambari-server start Step 4: Install and Start Ambari Agent on All Hosts Note: This step needs to be run on all hosts that will be managed by Ambari. Copy the rpm package from ambari-agent/target/rpm/ambari-agent/RPMS/x86_64/ and run: [For CentOS 7] yum install ambari-agent*.rpm [For SLES 12] zypper install ambari-agent*.rpm [Ubuntu/Debian] apt-get install ./ambari-agent*.deb Edit /etc/ambari-agent/ambari.ini ... [server] hostnamelocalhost ... Make sure hostname under the [server] section points to the actual Ambari Server host, rather than localhost. ambari-agent start Step 5: Deploy Cluster using Ambari Web UI Open up a web browser and go to http://ambari-server-host:8080. Log in with username admin and password admin and follow on-screen instructions. Secure your environment by ensuring your administrator details are changed from the default values as soon as possible. Under Install Options page, enter the hosts to add to the cluster.  Do not supply any SSH key, and check Perform manual registration on hosts and do not use SSH and hit Next. Ambari Development 转至元数据结尾 由 Mahadev Konar创建, 最终由 Jonathan Hurley修改于 十一月 30, 2018 转至元数据起始 Checking out Ambari source Follow the instructions under Checkout source code section of How to contribute guide. Well refer to the top-level ambari directory as AMBARI_DIR in this document. Tools needed to build Ambari The following tools are needed to build Ambari from source. Alternatively, you can easily launch a VM that is preconfigured with all the tools that you need.  See the Pre-Configured Development Environment section in the Quick Start Guide. xCode (if using Mac - free download from the apple store)JDK 8 (Ambari 2.6 and below can be compiled with JDK 7, from Ambari 2.7, it can be compiled with at least JDK 8)Apache Maven 3.3.9 or later Tip: In order to persist your changes to the JAVA_HOME environment variable and add Maven to your path, create the following files: File: ~/.profile source ~/.bashrc File: ~/.bashrc export PATH/usr/local/apache-maven-3.3.9/bin:$PATH export JAVA_HOME$(/usr/libexec/java_home) export _JAVA_OPTIONS-Xmx2048m -XX:MaxPermSize512m -Djava.awt.headlesstrue Python 2.6 (Ambari 2.7 or later require Python 2.7 as minimum supported version)Python setuptools: for Python 2.6: Download setuptools and run: sh setuptools-0.6c11-py2.6.egg for Python 2.7:  Download setuptools and run: sh setuptools-0.6c11-py2.7.egg rpmbuild (rpm-build package)g (gcc-c package) Running Unit Tests mvn clean testRun unit tests in a single module:mvn -pl ambari-server test Run only Java tests:mvn -pl ambari-server -DskipPythonTests Run only specific Java tests:mvn -pl ambari-server -DskipPythonTests -DtestAgentHostInfoTest test Run only Python tests:mvn -pl ambari-server -DskipSurefireTests test Run only specific Python tests:mvn -pl ambari-server -DskipSurefireTests -Dpython.test.maskTestUtils.py test Run only Checkstyle and RAT checks:mvn -pl ambari-server -DskipTests test NOTE: Please make sure you have npm in the path before running the unit tests. Generating Findbugs Report mvn clean install This will generate xml and html report unders target/findbugs. You can also add flags to skip unit tests to generate report faster. Building Ambari Note: if you can an error that too many files are open while building, then run: ulimit -n 10000 (for example) To build Ambari RPMs, run the following. Note: Replace ${AMBARI_VERSION} with a 4-digit version you want the artifacts to be (e.g., -DnewVersion1.6.1.1) Note: If running into errors while compiling the ambari-metrics package due to missing the artifacts of jms, jmxri, jmxtools: [ERROR] Failed to execute goal on project ambari-metrics-kafka-sink: Could not resolve dependencies for project org.apache.ambari:ambari-metrics-kafka-sink:jar:2.0.0-0: The following artifacts could not be resolved: javax.jms:jms:jar:1.1, com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1: Could not transfer artifact javax.jms:jms:jar:1.1 from/to java.net (https://maven-repository.dev.java.net/nonav/repository): No connector available to access repository java.net (https://maven-repository.dev.java.net/nonav/repository) of type legacy using the available factories WagonRepositoryConnectorFactory The work around is to manually install the three missing artifacts: mvn install:install-file -Dfilejms-1.1.pom -DgroupIdjavax.jms -DartifactIdjms -Dversion1.1 -Dpackagingjar mvn install:install-file -Dfilejmxtools-1.2.1.pom -DgroupIdcom.sun.jdmk -DartifactIdjmxtools -Dversion1.2.1 -Dpackagingjar mvn install:install-file -Dfilejmxri-1.2.1.pom -DgroupIdcom.sun.jmx -DartifactIdjmxri -Dversion1.2.1 -Dpackagingjar If when compiling it seems stuck, and youve already increased Java and Maven heapsize, it could be that Ambari Views has a lot of artifacts, and the rat-check is choking up. In this case, try running git clean -df (this will remove untracked files and directories) mvn clean package -DskipTests -Drat.ignoreErrorstrue or mvn clean package -DskipTests -Drat.skip Setting the Version Using Maven Ambari 2.8 uses a newer method to update the version when building Ambari.  RHEL/CentOS 6: # Update the revision property to the release version mvn versions:set-property -Dpropertyrevision -DnewVersion2.8.0.0.0 mvn -B clean install package rpm:rpm -DskipTests -Dpython.verpython 2.6 -Preplaceurl SUSE/SLES 11 # Update the revision property to the release version mvn versions:set-property -Dpropertyrevision -DnewVersion2.8.0.0.0    mvn -B clean install package rpm:rpm -DskipTests -Psuse11 -Dpython.verpython 2.6 -Preplaceurl Ubuntu 12: # Update the revision property to the release version mvn versions:set-property -Dpropertyrevision -DnewVersion2.8.0.0.0    mvn -B clean install package jdeb:jdeb -DskipTests -Dpython.verpython 2.6 -Preplaceurl Ambari 2.7 and Earlier Releases (Deprecated) RHEL/CentOS 6: 展开源码 SUSE/SLES 11 展开源码 Ubuntu 12: 展开源码 Ambari Server will create following packages RPM will be created under AMBARI_DIR/ambari-server/target/rpm/ambari-server/RPMS/noarch.DEB will be created under AMBARI_DIR/ambari-server/target/ Ambari Agent will create following packages RPM will be created under AMBARI_DIR/ambari-agent/target/rpm/ambari-agent/RPMS/x86_64.DEB will be created under AMBARI_DIR/ambari-agent/target Optional parameters: -X -e: add these options for more verbose output by Maven.  Useful when debugging Maven issues.-DdefaultStackVersionSTACK-VERSIONSets the default stack and version to be used for installation (e.g., -DdefaultStackVersionHDP-1.3.0)-DenableExperimentaltrueEnables experimental features to be available via Ambari Web (default is false)All views can be packaged in RPM by adding -Dviews parametermvn -B clean install package rpm:rpm -Dviews -DskipTests Specific views can be built by adding --projects parameter to the -Dviewsmvn -B clean install package rpm:rpm --projects ambari-web,ambari-project,ambari-views,ambari-admin,contrib/views/files,contrib/views/pig,ambari-server,ambari-agent,ambari-client,ambari-shell -Dviews -DskipTestsNOTE: Run everything as root below. Building Ambari Metrics If you plan on installing the Ambari Metrics service, you will also need to build the Ambari Metrics project.  cd ambari-metrics mvn clean package -Dbuild-rpm -DskipTests For Ubuntu: cd ambari-metrics mvn clean package -Dbuild-deb -DskipTests Note: The metrics rpms will be found at: ambari-metrics-assembly/target/. These would be need for installing the Ambari Metrics service. Running the Ambari Server First, install the Ambari Server RPM. On RHEL/CentOS: yum install ambari-server/target/rpm/ambari-server/RPMS/noarch/ambari-server-*.noarch.rpm On SUSE/SLES: zypper install ambari-server/target/rpm/ambari-server/RPMS/noarch/ambari-server-*.noarch.rpm On Ubuntu 12: dpkg --install ambari-server/target/ambari-server-*.deb          # Will fail with missing dependencies errors apt-get update                                                   # Update locations of dependencies apt-get install -f                                               # Install all failed dependencies dpkg --install ambari-server/target/ambari-server-*.deb          # Will succeed Initialize Ambari Server: ambari-server setup Start up Ambari Server: ambari-server start See Ambari Server log: tail -f /var/log/ambari-server/ambari-server.log To access Ambari, go to http://{ambari-server-hostname}:8080 from your web browser and log in with username admin and password admin. Install and Start the Ambari Agent Manually on Each Host in the Cluster Install the Ambari Agent RPM. On RHEL/CentOS: yum install ambari-agent/target/rpm/ambari-agent/RPMS/x86_64/ambari-agent-*.rpm SUSE/SLES: zypper install ambari-agent/target/rpm/ambari-agent/RPMS/x86_64/ambari-agent-*.rpm Ubuntu12: dpkg --install ambari-agent/target/ambari-agent-*.deb Edit the location of Ambari Server in /etc/ambari-agent/conf/ambari-agent.ini by editing the hostname line. Start Ambari Agent: ambari-agent start See Ambari Agent log: tail -f /var/log/ambari-agent/ambari-agent.log Setting up Ambari in Eclipse $ mvn clean eclipse:eclipse After doing the above you should be able to import the project via Eclipse Import Maven Existing Maven Project. Choose the root directory where you cloned the git repository. You should be able to see the following projects on eclipse: ambari | |- ambari-project |- ambari-server |- ambari-agent |- ambari-web Select the top-level ambari pom.xml and click Finish. Coding Guidelines for Ambari
http://www.huolong8.cn/news/231548/

相关文章:

  • 100元建网站wordpress自带评论代码
  • 网站如何做原创文章电子商务官方网站
  • 建设网站需要花多少钱下载微信小程序app
  • 网站文章不收录的原因软件开发项目实施方案
  • 雄安网站建设400多少钱wordpress 显示标签页
  • 南山公司网站建设网页设计图片素材网
  • 建造网站需要什么做的网站上更改内容改怎么办
  • 做装饰工程的在什么网站投标武进网站建设公司
  • wordpress换主机网页的优化
  • 有网站代码 如何建设网站优秀网站开发
  • 搭建网站流程视频十大平面设计公司
  • 什么网站做推广效果好建网站找那家企业好
  • 淘宝网站建设的优点西安建设工程信息交易中心官网
  • 网站空间租用价格如何制作课程网站模板
  • php网站开发需要学哪些济南建设网站制作
  • wordpress移除评论字段百度搜索关键词排名人工优化
  • 可以做游戏的网站有哪些内容内网怎么搭建
  • 鄂州正规网站建设网站建设教论坛
  • 请问在重庆从事网站建设工作的人每天都要做些什么欣宝儿在什么网站做直播
  • 小说下载网站哪个好软件开发培训学校驾校宝典
  • 中山网站建设多少钱网站开发好做吗
  • 腾讯云如何做网站2022年一建考试最新消息
  • 绍兴在线制作网站WordPress积分打赏插件制作
  • 狠狠做狠狠干免费网站鲅鱼圈网站在哪做
  • 做网站推广要注意的事项h5页面制作案例
  • 云南官网制作佛山市seo点击排名软件
  • 天津公司建站网站建设需要注意哪些事项
  • 移动网站开发书籍基础软件开发
  • 河北网站开发公司单机传奇手游无需联网
  • 网站的建设参考文献WordPress显示404error