'create(path, overwrite=False, blocksize=None, replication=None, permission=None)
Creates a file with the specified parameters.
`permission\' should be an octal integer or string.'

def create(self, path, overwrite=False, blocksize=None, replication=None, permission=None, data=None):

    path = Hdfs.normpath(path)
    params = self._getparams()
    params['op'] = 'CREATE'
    params['overwrite'] = ((overwrite and 'true') or 'false')
    if (blocksize is not None):
        params['blocksize'] = long(blocksize)
    if (replication is not None):
        params['replication'] = int(replication)
    if (permission is None):
        permission = self.getDefaultFilePerms()
    params['permission'] = safe_octal(permission)
    self._invoke_with_redirect('PUT', path, params, data)
