我在HDFS上有一个.thrift文件(生成Java作业),如下所示:
/**
* Contains thrift object definition for ABstudy holdback
**/
namespace java com.TK101.ads.study.gen
#@namespace scala com.TK101.ads.ABstudy.thriftscala
/**
* Different types of hold back
*/
enum Bucket {
HOLDBACK_TARGETED,
HOLDBACK_GENERAL_RECRUITMENT,
HOLDBACK_POST_AUCTION,
EXPOSED,
UNEXPOSED_AUCTIONLOST,
UNEXPOSED_FILTERED,
}
/**
* Contains the information on user holdbacks
*/
struct ABStudy {
1: optional i64 holdbackUserId;
2: optional i64 holdbackAdvertiserId;
3: optional i64 holdbackCampaignId;
4: optional Bucket holdbackType;
5: optional i64 holdbackTimeMilliSecs;
6: optional i64 creativeId;
}
我想使用这个.thrift文件生成作业来处理另一个HDFS目录上的数据。如何在数据上执行.thrift文件?