Esempio n. 1
0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import logging
import subprocess
import sys
import time
from desktop.supervisor import DjangoCommandSupervisee
from desktop.conf import KERBEROS as CONF

LOG = logging.getLogger(__name__)
SPEC = DjangoCommandSupervisee("kt_renewer")

NEED_KRB181_WORKAROUND = None


def renew_from_kt():
    cmdv = [
        CONF.KINIT_PATH.get(),
        "-k",  # host ticket
        "-t",
        CONF.HUE_KEYTAB.get(),  # specify keytab
        "-c",
        CONF.CCACHE_PATH.get(),  # specify credentials cache
        CONF.HUE_PRINCIPAL.get()
    ]
    retries = 0
Esempio n. 2
0
#!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Load the signal handlers
import desktop.signal_handlers

from desktop.supervisor import DjangoCommandSupervisee

SUPERVISOR_SPEC = DjangoCommandSupervisee("runcpserver", drop_root=False)

SUPERVISOR_CELERY_SPEC = DjangoCommandSupervisee("runcelery", drop_root=False)
Esempio n. 3
0
#!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import sys
import os
from desktop.supervisor import DjangoCommandSupervisee

sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'gen-py'))
SUPERVISOR_SPEC = DjangoCommandSupervisee("filesearch_server")
Esempio n. 4
0
#!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import sys
import os
from desktop.supervisor import DjangoCommandSupervisee

sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'gen-py'))
CELERYD_SUPERVISOR_SPEC = DjangoCommandSupervisee("celeryd")
Esempio n. 5
0
#!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Load the signal handlers
import desktop.signal_handlers

from desktop.supervisor import DjangoCommandSupervisee

SUPERVISOR_SPEC = DjangoCommandSupervisee("runcpserver", drop_root=False)
Esempio n. 6
0
#!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import sys
import os
from desktop.supervisor import DjangoCommandSupervisee

sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'gen-py'))
SUPERVISOR_SPEC = DjangoCommandSupervisee("beeswax_server")