|
|
@ -40,25 +40,25 @@ namespace ZKLT.Hadoop.API
|
|
|
|
app.UseCors("all");
|
|
|
|
app.UseCors("all");
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
app.UseHadoop((c) =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
c.Host = "127.0.0.1";
|
|
|
|
|
|
|
|
c.Account = "root";
|
|
|
|
|
|
|
|
c.PassWord = "root";
|
|
|
|
|
|
|
|
c.Key = "hadoopdb";
|
|
|
|
|
|
|
|
c.Port = 3306;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//app.UseHadoop((c) =>
|
|
|
|
//app.UseHadoop((c) =>
|
|
|
|
//{
|
|
|
|
//{
|
|
|
|
// c.Host = "172.17.0.1";
|
|
|
|
// c.Host = "127.0.0.1";
|
|
|
|
// c.Account = "root";
|
|
|
|
// c.Account = "root";
|
|
|
|
// c.PassWord = "root";
|
|
|
|
// c.PassWord = "root";
|
|
|
|
// c.Key = "testdb";
|
|
|
|
// c.Key = "hadoopdb";
|
|
|
|
// c.Port = 4000;
|
|
|
|
// c.Port = 3306;
|
|
|
|
//});
|
|
|
|
//});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.UseHadoop((c) =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
c.Host = "172.17.0.1";
|
|
|
|
|
|
|
|
c.Account = "root";
|
|
|
|
|
|
|
|
c.PassWord = "Panjiandong1994";
|
|
|
|
|
|
|
|
c.Key = "erpdb";
|
|
|
|
|
|
|
|
c.Port = 3306;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//app.UseHadoop((c) =>
|
|
|
|
//app.UseHadoop((c) =>
|
|
|
|
//{
|
|
|
|
//{
|
|
|
|
// c.Host = "118.195.165.218";
|
|
|
|
// c.Host = "118.195.165.218";
|
|
|
|