c# - Accessing Azure Table storage from Map/Reduce job running in a HDInsight cluster -
we running m/r job on 4-node hdinsight cluster, written in c#. 1 of mapper classes uses azure table storage apply business specific rules.
the m/r job runs correctly, if no cloudtable, cloudtableclient & cloudstorageaccount objects created.
but, on adding object references same, gives errors , job execution stops. part of code snippet given below:
public class topprogmapper : mapperbase { cloudtable table = null; cloudstorageaccount storageaccount = null; cloudtableclient tableclient = null; //the above objects instantiated , queried in mapper ctor public topprogmapper() { // instantiation code here, has been commented } }
code in mapper's ctor has been commented execution errrors-out when no object references created, described above.
the error code received mapreduceresult object (info.exitcode) 1, indicating issue m/r code. but, rest of code runs absolutely fine , produces correct output when above reference objects not created.
any on highly appreciated. provide additional details, if required.
thanks & regards, subho
it sounds assembly containing coudtable, cloudstorageaccount , cloudtableclient not available on cluster mapper running. should microsoft.windowsazure.storage.dll or microsoft.windowsazure.storageclient.dll depending on version of api using.
try adding config.filestoinclude.add("microsoft.windowsazure.storage.dll");
in configure method.
if doesn't help, share command line & output or code & exception details attempt launch job.
Comments
Post a Comment