
# 调测Alluxio应用
#### Alluxio客户端运行及结果查看
1. 执行mvn clean compile assembly:single生成jar包，在工程目录target目录下获取，比如:alluxio-examples-mrs-1.9-jar-with-dependencies.jar。
2. 在运行调测环境上创建一个目录作为运行目录，如或"/opt/alluxio_examples"(Linux环境)，并在该目录下创建子目录"conf"。 
   将[1]导出的alluxio-examples-mrs-1.9-jar-with-dependencies.jar拷贝到"/opt/alluxio_examples"下。
   将客户端下的配置文件"/opt/client/Alluxio/alluxio/conf/alluxio-site.properties"拷贝到"conf"下。
   ![](https://support.huaweicloud.com/devg-mrs/public_sys-resources/note_3.0-zh-cn.png)
   当Alluxio集群启动时，每一个Alluxio服务端进程（包括master和worke）在目录"${CLASSPATH}"，"${HOME}/.alluxio/"，"/etc/alluxio/"，和"${ALLUXIO_HOME}/conf"下顺序读取alluxio-site.properties , 当alluxio-site.properties文件被读取到则跳过剩余路径的查找，所以请根据实际环境情况存放alluxio-site.properties文件。
   
   
3. 在Linux环境下执行运行样例程序。 
   ```
   chmod +x /opt/alluxio_examples -R 
   cd /opt/alluxio_examples
   java -jar alluxio-examples-mrs-1.9-jar-with-dependencies.jar /testFlie.txt
   ```
   
   
4. 在命令行终端查看样例代码所查询出的结果。 
   Linux环境运行成功结果会有如下信息：
   ```
   hi, I am bigdata. It is successful if you can see me.
   ```
   
   
 
