最近做一个项目,需要上传文件到文件服务器, 文件服务器是 内部的webapi形式的接口.经朋友推荐使用restshrap , 例子: //上传文件 var request=new RestClient(); var req=new RestRequest("http://www.sc.com",Method.Post); //上传的地址, req.addHeader("content-type","multipart/form-data"); r…
我是在flume向hdfs 写(sink)数据时遇到的这个错误. Server (是指hdfs) asks us to fall back to SIMPLE auth, but this client (是指flume) is configured to only allow secure (是指kerberos) connections. 原因是flume开了kerberos,而hdfs没有开kerberos. 此时flume和hdfs的通信就不能使用相同的认证方式,hdfs只识别简单认证模…
Creating a Simple Web Service and Client with JAX-WS 发布服务 package cn.zno.service.impl; import javax.jws.WebService; import javax.xml.ws.Endpoint; @WebService public class HelloServiceImpl { public String say(String name) { System.out.println(name); r…
Scala CookBook: http://scalacookbook.com/ @throws(classOf[java.io.IOException]) @throws(classOf[java.net.SocketTimeoutException]) def get(url: String, connectTimeout:Int =5000, readTimeout:Int =5000, requestMethod: String = "GET") = { import jav…
原文链接:http://www.c-sharpcorner.com/UploadFile/19b1bd/design-patterns-simplified-part3-factory/ Design Patterns Simplified - Part 3 (Simple Factory)[设计模式简述--第三部分(简单工厂)] This article explains why and how to use the Simple Factory Design Pattern in softw…
http://tech.pro/tutorial/704/csharp-tutorial-simple-threaded-tcp-server In this tutorial I'm going to show you how to build a threaded tcp server with C#. If you've ever worked with Window's sockets, you know how difficult this can sometimes be. Howe…
http://www.jroller.com/sjivan/entry/lingo_spring_remoting_passing_client Lingo (Spring Remoting) : Passing client credentials to the server Spring Remoting allows you to export a service interface which a remote client then then look up. Once the rem…
引言: nosql 的兴起和革命,在我看来已经开始逐渐影响到了传统的sql的地位,但是仅仅是影响而已,取代是不太可能的. 正文: 两年前,一个偶然的机会开始接触到 nosql ( mongodb ).用来作数据挖掘的存储容器,第一次接触到nosql,真的被它惊艳到了.鄙人受到传统的SQL的思维定势,甚至一时间难以接受. mongodb是一个非关系型文档数据库,非常适合文档类型的数据的存储,查询也十分方便,支持动态的横向和纵向的数据扩展.爱不释手.下个用几行shell来展示一下mongodb的魅力…
http://scottge.net/2015/07/08/a-complete-list-of-net-open-source-developer-projects/?utm_source=tuicool NET Implementations .NET Core – Core .NET Framework C# Native – Compiles C# to native. Cosmos – C# Open Source Managed Operating System, an operat…
First we should know some basic conceptions about network: 1.Every PC is supposed to have its own IP,So we can connent other's PC by WAN.That's just like a ID of netwrok world.   2.But if  every PC has its own IP,Then IPs of this world will be insuff…