Revision 50037
Added by Claudio Atzori almost 6 years ago
modules/dnet-hadoop-service/trunk/src/main/java/eu/dnetlib/data/hadoop/HadoopClientMap.java | ||
---|---|---|
3 | 3 |
import java.io.IOException; |
4 | 4 |
import java.util.Map; |
5 | 5 |
|
6 |
import com.google.common.collect.Maps; |
|
7 |
import com.google.gson.Gson; |
|
8 |
import eu.dnetlib.data.hadoop.config.ClusterName; |
|
9 |
import eu.dnetlib.data.hadoop.hbase.HBaseAdminFactory; |
|
6 | 10 |
import eu.dnetlib.data.hadoop.mapred.JobClientFactory; |
11 |
import eu.dnetlib.data.hadoop.oozie.OozieClientFactory; |
|
7 | 12 |
import eu.dnetlib.data.hadoop.rmi.HadoopServiceException; |
8 | 13 |
import org.apache.commons.logging.Log; |
9 | 14 |
import org.apache.commons.logging.LogFactory; |
... | ... | |
12 | 17 |
import org.apache.oozie.client.OozieClient; |
13 | 18 |
import org.springframework.beans.factory.annotation.Autowired; |
14 | 19 |
import org.springframework.beans.factory.annotation.Required; |
15 |
import org.springframework.context.annotation.Lazy; |
|
16 | 20 |
|
17 |
import com.google.common.collect.Maps; |
|
18 |
import com.google.gson.Gson; |
|
19 | 21 |
|
20 |
import eu.dnetlib.data.hadoop.config.ClusterName; |
|
21 |
import eu.dnetlib.data.hadoop.hbase.HBaseAdminFactory; |
|
22 |
import eu.dnetlib.data.hadoop.oozie.OozieClientFactory; |
|
23 |
|
|
24 |
|
|
25 | 22 |
public class HadoopClientMap { |
26 | 23 |
|
27 | 24 |
private static final Log log = LogFactory.getLog(HadoopClientMap.class); // NOPMD by marko on 11/24/08 5:02 PM |
28 | 25 |
|
29 |
@Lazy |
|
30 | 26 |
@Autowired |
31 | 27 |
private JobClientFactory jobClientFactory; |
32 | 28 |
|
33 |
@Lazy |
|
34 | 29 |
@Autowired |
35 | 30 |
private OozieClientFactory oozieClientFactory; |
36 | 31 |
|
37 |
@Lazy |
|
38 | 32 |
@Autowired |
39 | 33 |
private HBaseAdminFactory hbaseAdminFactory; |
40 | 34 |
|
Also available in: Unified diff
removed Lazy annotations