use of io.hops.hopsworks.persistence.entity.featurestore.featuregroup.cached.hive.HiveSds in project hopsworks by logicalclocks.
the class TestFeatureGroupCommitController method setup.
@Before
public void setup() {
Inode inode = new Inode();
HiveSds hiveSds = new HiveSds();
hiveSds.setSdId(1l);
hiveSds.setLocation("hopsfs://namenode.service.consul:8020/apps/hive/warehouse/test_proj_featurestore.db/fg1_1");
hiveSds.setInode(inode);
HiveTbls hiveTbls = new HiveTbls();
hiveTbls.setSdId(hiveSds);
hiveTbls.setTblName("fg1_1");
CachedFeaturegroup cachedFeaturegroup = new CachedFeaturegroup();
cachedFeaturegroup.setHiveTbls(hiveTbls);
fs = new Featurestore();
fs.setHiveDbId(1l);
fs.setProject(new Project("test_proj"));
fg1 = new Featuregroup(1);
fg1.setName("fg1_1");
fg1.setVersion(1);
fg1.setFeaturestore(fs);
fg1.setCachedFeaturegroup(cachedFeaturegroup);
}
Aggregations