1113工作总结

前辈建议我将执行命令放入shell脚本中,这样就不至于看着一堆mapreduce心烦。

好主意!于是


#!/bin/bash
hadoop jar sel.jar org.day1111.Main /user/hive/warehouse/clickwise.db/nstat/dt=20141011/dp=nstat/ /user/clickwise/rainbow/shell>/home/clickwise/rainbow/log 2>& 1

用了个重定向

indexOf 方法返回一个整数值,指出 String 对象内子字符串的开始位置。如果没有找到子字符串,则返回-1。

matches匹配貌似不能用里面有"."的

猜你喜欢

转载自719607746.iteye.com/blog/2155302